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?
Hi Swamy, 

See the below resource, 

Facebook Toolkit

Also see a related thread, 

Consume a third party REST Api in salesforce

Go through the entire thread,

Also see, 

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.

Hi Swamy, 

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

Making Direct Facebook API Calls Using REST

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.


Deprecating the REST API

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.