views:

84

answers:

1

Hi folks,

I am looking out for a way to find the "Likes" of my friends. Hence the rest url using graph api would be something like,

https://graph.facebook.com/user_id_some_number/likes?access_token=access_token

Please note that user_id_some_number is the ID something like 12302892734748 and access_token is the access token.

However, this returns me an empty data as follows,

{
   "data": [      
   ]
}

I am not sure why it does not work? Am I doing something wrong? Thanks for your time.

Cheers,
Abhishek

+1  A: 

Double-check if you've got the users friends_likes data permission.

friends_likes Provides access to the list of all of the pages the user has liked as the likes connectionliked as the likes connection

Reference: http://developers.facebook.com/docs/authentication/permissions

Edit:

Your Syntax worked for me

{
   "data": [
      {
         "name": "BookBooN.com",
         "category": "Application",
         "id": "48503876751",
         "created_time": "2010-09-01T09:33:42+0000"
      },
      {
         "name": "New Zealand",
         "category": "Travel",
         "id": "154058198218",
         "created_time": "2010-08-29T21:30:30+0000"
      },

Your permission dialog should have this style

alt text

Henrik P. Hessel
Abhishek
You syntax worked for me.
Henrik P. Hessel

related questions