I'm trying to upload an image file to Facebook from Salesforce and current this is my codes and it is not working can anyone help me fix it?
Please Note that my Image file is inside the Accounts Notes & Attachments
I tested the string that I use for salesforcephoto and it Uploaded something onto Facebook using the Facebook Graph API explorer
Save Session for the Facebook Graph API Explorer Click Here
The String I use for salesforcephoto
String salesforcephoto = 'https://c.ap4.content.force.com/servlet/servlet.ImageServer?file='+lstRelatedAttach[0].Id+'&oid=' + orgid ;
Debug Log Errors
Redirecting to login page
Currently this my link I'm using for my testing and it will redirect me to the login page instead of showing the image.
I have tested this other link but it will give me an error message
https://c.ap4.content.force.com/servlet/servlet.ImageServer?id=00P6F00001G81jz&oid=00D6F000001vFKh