Graph API返回'false'或'Unsupported get request'访问公共Facebook页面 [英] Graph API returns 'false' or 'Unsupported get request' accessing public Facebook Page

查看:299
本文介绍了Graph API返回'false'或'Unsupported get request'访问公共Facebook页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在几个粉丝页面中遇到问题,并通过Facebook Graph API获取他们的详细信息。

I've been having some problems with a few Fan Pages and getting their details with the Facebook Graph API.

当我尝试获取风扇的详细信息页面,Graph API仅返回 false ,但现在返回

When I try to get the details for the Fan page, Graph API only returned false, but is now returning

{
    "error": {
        "message": "Unsupported get request.",
        "type": "GraphMethodException",
        "code": 100
     }
}

这不是所有Facebook页面的情况只是一些。

This is not the situation with all Facebook Pages, just for a few.

例如,当我尝试获取此页面
https://graph.facebook.com / CaptainMorganMacedonia
它只返回一个错误。

For example, when I try to get the details for this page at https://graph.facebook.com/CaptainMorganMacedonia, it only returns an error.

该页面是公开的,有超过25个粉丝,但我仍然有问题获取页面的详细信息。这是Facebook的东西,还是页面有一些糟糕的配置?

The page is public and has more than 25 fans, but I still have problems fetching the details of the page. Is it something with Facebook, or does the page have some bad configuration?

推荐答案

假设页面是酒精门控(在OP的例如该页面是酒精页面),您必须访问具有符合酒精限制的用户的访问令牌的页面。

Assuming the page is Alcohol gated (In the OP's example the page was an alcohol page) you must access the page with an access token for a user who meets the alcohol restrictions.

对于酒精,21岁以上的用户应该能够做到这一点,对于一些市场而言,这是较低的(取决于该市场的饮酒年龄)。

For alcohol specifically, any user over 21 should be able to do this, and for some markets it's lower (depending on the drinking age in that market).

在一般情况下,如果某个页面具有可视性的受众特征(国家或年龄)限制,则由于酒精原因或取消发布而受到限制,

In the general case, if a page has demographic (country or age) restrictions on its visiblity, is restricted for alcohol reasons, or is unpublished, A Page or App access token will not work when trying to access that page's details or feed.

您必须为具有权限的用户使用用户访问令牌查看页面。

You must use a user access token for a user who has permission to view the page.

如果用户不符合页面管理员的限制,则返回 false

If the user does not meet the restrictions placed by the page admin, false was returned.

这个(自2012年9月起)被替换为OauthException,文本不支持的获取请求。和代码 100

This has (since September 2012) been replaced with an OauthException with the text Unsupported get request. and code 100

这是一个全部错误,通常意味着隐私检查失败。
对于网页,原因几乎肯定是该页面未发布,选定某些国家或年龄组,或标记为酒精页

This is a catch-all error which usually means a privacy check has failed. For pages, the cause is almost certainly that the page is unpublished, gated to certain countries or age groups, or marked as an alcohol page

这篇关于Graph API返回'false'或'Unsupported get request'访问公共Facebook页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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