facebook - Get Post Id from Url using FQL -


i have url: http://herbalista.co/1r posted on timeline id = 1635826883323920 how id fql? have tryied https://graph.facebook.com/fql?q=select+id+from+object_url+where+url=%27http://herbalista.co/1r%27

and return different id = 1128761283806609

the post id runs ok embed post returned id doesn't works... i'm using:

$posturl = "https://www.facebook.com/herbalistas/posts/".$id;  <div class="fb-post" data-href="$posturl" data-width="400"><div class="fb-xfbml-parse-ignore"><blockquote cite="$shortened"><p></p></blockquote></div></div> 

i think returned id global link not original id original post on timeline

i find solution:

https://graph.facebook.com/fql?q=select+link_id+from+link+where+owner=[user_id]+and+url=%27[url]%27limit%201000&access_token=[full-user-access-token]

it fetch posts on user timeline , filter url


Comments