Alessandro Tedesco
Alessandro Tedesco

Reputation: 144

Facebook graph api empty data when getting user likes

I'm using a Facebook application that get all user likes in order to check if a given page is liked using

https://graph.facebook.com/{USER_ID}/likes?access_token={MY_ACCESS_TOKEN}

Everything works fine for me and for the most part of the users, except for some users, that return this:

{
  "data": [

  ]
}

Why does it return an empty data? I already requested the authorization for user_likes in the application

Upvotes: 2

Views: 1637

Answers (1)

VoodooMike
VoodooMike

Reputation: 41

Apps only have access to a user's public information. Even with user_likes permission you will get no Likes data from a user that has set their Likes to private.

Upvotes: 4

Related Questions