Quantcast
Channel: Graph API new feed post object-Attachment not showing - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Jonathan_Ng for Graph API new feed post object-Attachment not showing

$
0
0

I think the 'object_attachment'=>$photo_id won't work any more.You should change it to 'picture'=>$photo_url

$photo_Url = "link to your photo";//Valid Facebook Photo ID...        $facebook = new Facebook($config);$attachment =  array('access_token' => $user_token,'message' => "Test Message",'caption' => "THis is a Caption",'name' => "Test Name",'description' => "This is a description",'link' => 'http://url.com/','picture' => $photo_Url,);$response = $facebook->api("/".$userID."/feed/", 'POST', $attachment);

You can find more Here


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>