function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swamy P R NSwamy P R N 

How to execute or how to call apex rest resource class from facebook

Hi Buddies,

I want to execute our Rest Resource class from Facebook. For this scenario how can i acheive?

i want to execute fb comments or share's by using javascript from fb to call  our rest resource class, is it possible?
Ashish_SFDCAshish_SFDC
Hi Swamy, 


See the below resource, 

Facebook Toolkit

https://developer.salesforce.com/page/Facebook_Toolkit

Also see a related thread, 

Consume a third party REST Api in salesforce

https://developer.salesforce.com/forums?id=906F00000009ArLIAU

Go through the entire thread, 

https://developer.salesforce.com/forums?id=906F000000099zbIAA

Also see,

https://github.com/metadaddy-sfdc/Force.com-Toolkit-for-Facebook/blob/master/src/classes/FacebookLoginController.cls 


Regards,
Ashish
Swamy P R NSwamy P R N
Hi Ashish,

Thank you for giving all the supported links, but i implemented some logic in apex class to parse in salesforce using RestResource. Now i want to call our restresource url from the facebook. so for this where can i implement logic on facebook. i have basic idea how to write a call the external url by using javascript.

I wanted to know, where i need to implement this script logic in facebook ? So, plz suggest me Ashish.
Ashish_SFDCAshish_SFDC

Hi Swamy, 


See the links below should put you in the right direction, 


Making Direct Facebook API Calls Using REST

http://blog.gigya.com/making-direct-facebook-api-calls-using-rest/


Access to Facebook API using REST and HttpClient

http://stackoverflow.com/questions/1404028/access-to-facebook-api-using-rest-and-httpclient


The Graph API is connected to some other Facebook APIs such as FQL. You can read our guides to these APIs in this section.

https://developers.facebook.com/docs/graph-api


Facebook, REST API

http://wiki.processing.org/w/Facebook,_REST_API


Deprecating the REST API

https://developers.facebook.com/blog/post/616/


RestFB is a simple and flexible Facebook Graph API and Old REST API client written in Java.
It is open source software released under the terms of the MIT License.

http://restfb.com/

http://restfb.com/legacy-rest-api.html


Regards,

Ashish