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
sayirbsayirb 

Post images to Facebook from Salesforce using Graph API

Hi,

 

   I have a requirement to upload images from Salesforce to Facebook using graph API. The user add the image and test message in Salesforce,  then using Facebook Graph API I have to  update them to Facebook. I am success full in posting text messages.

 

        I have tried different options to update images from Salesforce, but no hope.  Can anyone help me to

 post the images.

 

Thanks,

Riyas

 

cbernalcbernal

Can you post text messages to facebook? Im trying to post messages from salesforce to facebook and twitter, could u share your code for do that with facebook? any help will be appreciated.

Regards

RiyasRiyas

You have to create and send  HttpRequest  to  Facebook API with options as specified by the Facebook Graph API for posting messages. I think the same way you can post to Twitter also.

 

 Unfortunately I lost that apex codes, since it is removed from my project.