views:

31

answers:

1

This seems like a pretty obvious, basic thing to expect from the Graph API, but I'm having serious difficulty with it. All I want to do is get the ID for any particular Url. They have a method for this:

https://graph.facebook.com/?ids=http://www.imdb.com/title/tt0117500/

And that works great. But if I try another Url, say my blog:

https://graph.facebook.com/?ids=http://dusda.vox.com

It doesn't give me back a numerical id like all of the examples do. Instead, this:

{"http:\/\/dusda.vox.com":{"id":"http:\/\/dusda.vox.com"}}

If I try to use that "id", I get jack (probably because the query string looks impossible to parse):

Request: https://graph.facebook.com/http://dusda.vox.com/likes
Response: {"id":"http:\/\/dusda.vox.com\/likes"}

So what's up with this? Is the Graph Api just selectively reliable, or am I misunderstanding something? I've tried it on urls that I know are popular on Facebook, too, and gotten mixed results.

+2  A: 

Id is given by facebook only to pages which have a fbshare/like button. Else the api returns number of shares and the request url.

kaka