[英]Get facebook page restrictions (country, age) via Graph API - OpenGraphObjectRestrictions
有没有办法知道Facebook页面是否有年龄或国家/地区限制?
我在Facebook文档上找到了这个: OpenGraphObjectRestrictions
但似乎不起作用。 我收到这样的错误:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (age) on node type (Page)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "ALXe8MDbLtc"
}
}
提前致谢
有没有办法知道Facebook页面是否有年龄或国家/地区限制?
仅当您拥有对该页面的管理员访问权限时; 使用页面访问令牌,您可以读取当前页面设置,包括AGE_RESTRICTIONS
和COUNTRY_RESTRICTIONS
。
https://developers.facebook.com/docs/graph-api/reference/page/settings/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.