得到用户喜欢时,Facebook图形API空数据 [英] Facebook graph api empty data when getting user likes

查看:77
本文介绍了得到用户喜欢时,Facebook图形API空数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个Facebook应用程序,该应用程序会获得所有用户的喜欢,以便检查是否使用来喜欢给定的页面

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": [

  ]
}

为什么它返回空数据?我已经在应用程序中请求了 user_likes 的授权

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

推荐答案

应用只能访问用户的公共信息.即使具有user_likes权限,您也不会从将其顶"设为私有"的用户那里获取顶"数据.

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.

这篇关于得到用户喜欢时,Facebook图形API空数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆