简体   繁体   English

FB.api('/ page_id / admins /')引发(#210)主题不是页面

[英]FB.api('/page_id/admins/') throws (#210) Subject is not a page

So I have a page, and am trying to create an app that determines whether or not a user is an admin of that page. 因此,我有一个页面,正在尝试创建一个确定用户是否是该页面管理员的应用程序。 The documentation states to use page_id/admins/user_id, which I am. 该文档指出要使用page_id / admins / user_id。 However, it keeps throwing the error "Subject is not a page," which is obviously is, and even when I get just the page, it's type is set to "page." 但是,它总是抛出错误“主题不是页面”,这显然是这样,即使我只得到页面,它的类型也被设置为“页面”。 Why am I getting this error, and how would I fix it? 为什么会出现此错误,我该如何解决?

You should use the Page access token when making this call - see https://developers.facebook.com/docs/reference/api/page/#page_access_tokens 进行此调用时,应使用“页面”访问令牌-请参阅https://developers.facebook.com/docs/reference/api/page/#page_access_tokens

The "subject" in this case is the page so you should use that access token. 在这种情况下,“主题”是页面,因此您应该使用该访问令牌。

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

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