I would like to retrieve a the facebook id from a link. What I would like to know is if I’ve got all the possible cases or/and if I can have a standard way to do it ex :
If have http://www.facebook.com/pages/ExchangeMyRooms/301768493253094
I can retrieve the id from the URL
If I have http://www.facebook.com/babelverse I do :
https://graph.facebook.com/?ids=babelverse
and I get the id
If I have http://www.imdb.com/title/tt0117500/ I do : https://graph.facebook.com/?ids=http://www.imdb.com/title/tt0117500/
and I get the id
The results should look like that :
{
"babelverse": {
"id": "177626422254171",
"name": "Babelverse",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/372895_177626422254171_1480242829_s.jpg",
"link": "http://www.facebook.com/babelverse",
"likes": 957,
...
Is there a way to do a query like
SELECT id FROM idontknow WHERE link=mylink
Thank you very much
So you are just looking for the FQL equivalent of the Graph API call …?
https://developers.facebook.com/docs/reference/fql/object_url/