Friends_interests / likes / etc从Facebook Graph API返回为空白 [英] Friends_interests/likes/etc return as blank from Facebook Graph API

查看:112
本文介绍了Friends_interests / likes / etc从Facebook Graph API返回为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用图形API来处理,并且能够访问我自己的信息。但是,当我尝试像:

I've been messing around with the graph API and have been able to access my own information just fine. However, when I attempt something like:

https://graph.facebook.com/999999/likes?access_token=xxx (其中999999是朋友的ID)

https://graph.facebook.com/999999/likes?access_token=xxx (where 999999 is a friend's ID)

我得到一个空白如图所示:

I get a blank graph like so:

{
data:[

{ "data": [

]
}

请记住,我现在手动完成所有操作。这是我用来请求我个人资料许可的网址:

Keep in mind I'm doing this all manually for the time being. This is the URL I used to request permission from my profile:

https://www.facebook.com/dialog/oauth?client_id=xxx&redirect_uri = http://www.google.com& scope = email,read_stream,offline_access,user_likes,friends_likes

所有这些都是hunky-dory,我得到我的访问代码,但我仍然收到空白图。建议?

It all works hunky-dory and I get my access code, yet I still receive the blank graph. Suggestions?

谢谢。

推荐答案

我已经注意到即使应用程序可以请求(并被授予)某些权限,例如要访问喜欢,这并不一定意味着应用程序将能够访问这些信息。

I have come to notice that even though an application can request (and be granted) certain permissions, e.g. to access Likes, it doesn't necessarily mean that an application will be able to access this information.

我不是100%的确定,但可能会有两个例子,例如请求用户喜欢在空数据集中搜索结果,即使用户请求和授予了正确的权限:

I'm not a 100% certain of this but there might be two instances where e.g. requesting a users Likes results in an empty data set even though the right permissions where requested and granted by the user:


  1. 用户在他/她的隐私设置中设置了自定义权限
    不会公开信息(例如喜欢)。基本上,定制的
    权限设置会超过
    应用程序所请求的授权权限。

  1. The user has set custom permissions in his/her privacy settings not make public the information (e.g. Likes). Basically, customized permission settings overrule the granted permissions that an application requested.

用户不在18. https://www.facebook.com/help/?page=214189648617074

这篇关于Friends_interests / likes / etc从Facebook Graph API返回为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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