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

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

$
0
0

I am assuming user gave the permission for user_photos / friends_photos. Since you have the photo_id, you may try this.

$pic = $facebook->api("/PHOTO_ID");$pic_url = $pic->source;$attachment =  array('access_token' => USER_ACCESS_TOKEN,'message'      => "...",'caption'      => "...",'name'         => "...",'description'  => "...",'link'         => URL,'picture'      => $pic_url);

ADDED

You need to store the image some where locally ,in a local server . due to this article


Viewing all articles
Browse latest Browse all 5

Trending Articles



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