views:

663

answers:

3

When I try to get all my "likes" (formerly fan pages) on Facebook Graph API, sometimes it returns me an empty set:

{
   "data": [

   ]
}

I tried with https://graph.facebook.com/me/likes?access_token=MY_ACCESS_TOKEN and with graph.facebook.com/vinch/likes?access_token=MY_ACCESS_TOKEN but the result is exactly the same (empty).

Any idea of what it can be? I need it to know if a user likes (is fan of) a specific page.

A: 

I'm having the same problem. I have an app which can only be used by fans of my page so the first thing the app does is check the current user's Likes. For some users we got the empty set (as you described above) and solved the problem by changing their Privacy Settings (see here: http://myoe.com/book-myoe-seat/images/fb-privacy.jpg). But we have (many) other users who swear their Privacy is OK but our app just can't access their Likes.

For us it doesn't seem to be intermittent - we can access some user's Likes OK, for other users it just won't work.

tearing my hair out...

Mick Buckley
A: 

Yesterday facebook fixed likes (http://developers.facebook.com/live_status#msg_612)

You can get only user likes not object likes. For example, you can not get all users by page_id.

Valery Victorovsky
A: 

If all you need to know is whether or not a user is a fan of something (and not a list of likes or a list of fans) this should do the trick: http://developers.facebook.com/docs/reference/rest/pages.isFan.

jcmoney