Wednesday 15 August 2012

php - Get Facebook id of person how tagged me on my timeline -



php - Get Facebook id of person how tagged me on my timeline -

currently i'm working on website client. want show latest facebook wall posts on website, posts tagged in others. facebook graph can allot of info latest post message, description, image etc. can't find or facebook id of person tagged him in post... own facebook id , id's of others persons tagged, not tagger (if word :p)

can help me this?

i'm using /feed in facebook graph info posts on wall

$fb_id = 'your-facebook-id'; $fb_token = 'my-acces-token'; // tokken obtained facebook graph explorer page $fb_response = file_get_contents('https://graph.facebook.com/'.$fb_id.'/feed?access_token='.$fb_token); $fb_array = json_decode($fb_response, true);

thanks time!!

if understand correctly, need find id of user posted status update tagged client.

do things before, collecting objects /user/feed edge. should retrieve id status. this, create phone call graph /status_id. give info posted status along other things.

https://developers.facebook.com/docs/graph-api/reference/v2.1/post

note work public posts valid access token. if post not public, may not able retrieve post user's access token not original user posted status. maintain in mind docs state:

only posts authors have granted read_stream permission app shown /user/feed.

php facebook facebook-graph-api graph

No comments:

Post a Comment