简体   繁体   English

有效页面的图形API异常

[英]Graph API Exception for a valid page

Why does https://graph.facebook.com/weddingsutra doesn't work though the page https://www.facebook.com/weddingsutra is valid? 尽管页面https://www.facebook.com/weddingsutra仍然有效,但为什么https://graph.facebook.com/weddingsutra不起作用?

Response I am getting is 我得到的回应是

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

I think it's because of the Age Restrictions related to your page. 我认为是由于与您的页面相关的年龄限制。

You can go to Settings -> Age Restrictions and make sure it is accessible by anyone with an age 13+. 您可以转到设置->年龄限制 ,并确保年龄在13岁以上的任何人都可以访问它。

It should also work in case of any age restriction (example 18+), if you are supplying an Authentication Token (provided that you're 18+ in age). 如果您提供了身份验证令牌(假设您已年满18岁),则在任何年龄限制(例如18岁以上)的情况下,它也应该可以使用。

You need an access token to access information via the Graph API. 您需要访问令牌才能通过Graph API访问信息。 You can easily generate an access token using the graph explorer tool and then try the url: 您可以使用图形浏览器工具轻松生成访问令牌,然后尝试使用网址:

https://graph.facebook.com/weddingsutra?access_token={access_token}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM