Facebook graph api empty data when getting user likes

删除回忆录丶 提交于 2019-12-08 08:12:26

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/19195443/facebook-graph-api-empty-data-when-getting-user-likes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!