图 API 在访问公共 Facebook 页面时返回“false"或“不支持的获取请求" [英] Graph API returns 'false' or 'Unsupported get request' accessing public Facebook Page

查看:23
本文介绍了图 API 在访问公共 Facebook 页面时返回“false"或“不支持的获取请求"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 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 月起)被替换为带有文本 Unsupported get request. 和代码 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

这篇关于图 API 在访问公共 Facebook 页面时返回“false"或“不支持的获取请求"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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