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

Graph API new feed post object-Attachment not showing

$
0
0

I'm having a strange problem with the graph API, the below code used to work for me adding a post to a users news feed with a thumbnail of the attached photo (referenced in 'object_attachement' parameter).

However now the post is created as expected however the thumbnail is empty. The photo_id I am using exists in the user's photo collection.

Results of below code now.

    $photo_ID = "3415678920211";//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/','object_attachment' => $photo_id,    );    $response = $facebook->api("/".$userID."/feed/", 'POST', $attachment);

Am I doing something wrong? I am sure this did use to work and wonder if something changed in the API underneath me.

[Update]I noticed that this seems to happen when I specify both link & object_attachment in the same POST. If I remove the link param from the above then I get a slightly better update however this isn't great as the main reason I want this post to exist is for the addition of the link.


Viewing all articles
Browse latest Browse all 5

Trending Articles



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