API无法看到新的Facebook页面 [英] New Facebook page not visible to API

查看:105
本文介绍了API无法看到新的Facebook页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,对这个相当复杂的问题表示歉意.我已经搜索了该站点,以查看是否曾经被询问过,但是,尽管有许多相似之处,但它们都与该特定问题无关.

Firstly, apologies for the fact that this is a rather convoluted question. I have search the site to see if it has been asked before, but, while there are several that are similar, none of them relate to this specific problem.

我正在尝试使用Page API设置发布为Facebook页面的功能.我已经经历了以下过程:

I am trying to set up the ability to post as a Facebook page using the Page API. I have gone through the following process:

  1. 创建应用
  2. 创建链接到应用的页面
  3. 将页面添加到我的Facebook业务管理器帐户中
  4. 将自己设置为页面的管理员
  5. 获得了该应用的访问令牌

但是,当我尝试以任何方式与页面进行交互时,都会收到错误消息.似乎是问题所在,该API无法将我识别为该页面的管理员.

However, when I try to interact with the page in any way, I get an error. What appears to be the issue is that the API does not recognise me as an admin of the page.

这不是编码问题.我已经使用SDK进行了测试,并使用curl手动滚动了必需的API调用,以及使用了在线Graph Explorer工具.在所有情况下,错误消息都是相同的.我还使用故意无效的凭据对其进行了测试,以检查它是否不是身份验证问题.

This is not a coding issue. I have tested it with both the SDK and hand-rolling the necessary API calls with curl, as well as using the online Graph Explorer tool. The error messages are identical in all cases. I have also tested it with deliberately invalid credentials to check that it is not an authentication issue.

如果我使用Graph Explorer或我自己的代码执行"/me/accounts" API操作,则可以正确获取我的帐户详细信息和我可以访问的所有页面.但是,列表中缺少我的新页面.我可以看到我以前创建的所有页面,但是看不到这一页.这似乎暗示我不是该页面的管理员.

If I perform the '/me/accounts' API action, using either the Graph Explorer or my own code, I correctly get back my account details and all the pages I have access to. However, my new page is missing from the list. I can see all my previously created pages, but not this one. This would seem to imply that I am not an admin of the page.

但是...当我访问网络上的页面时,我是管理员.我拥有对所有管理功能的完全访问权限.它也显示在Android上的页面管理器"应用程序的页面列表中.

But... when I visit the page on the web, I am an admin. I have full access to all the admin functions. It also appears in my list of pages in the Pages Manager app on Android.

我很抱歉这可能是一个RTFM问题,但是我已经在文档中搜索了关于我做错了什么的提示,但没有发现任何帮助.

I apologise of this is possibly an RTFM question, but I have scoured the documentation for any hint as to what I am doing wrong, and have found nothing helpful.

最后一点,为清楚起见,该应用程序仍在开发中,尚未提交批准.但这不应该成为问题,我只是使用未经许可即可工作的API调用对其进行测试.该应用程序可以与我拥有的其他页面成功交互,只要我将其限制为不需要批准的调用即可.

One final point, just for clarity, the app is still in development and hasn't yet been submitted for approval. But that shouldn't be an issue, I'm only testing it with API calls that should work without approval. And the app successfully interacts with other pages I own, provided I restrict it to calls that do not require approval.

有人可以建议我可能错过的内容吗?如何获得API以识别我是新创建页面的管理员?

Can anyone suggest what I may have missed? How can I get the API to recognise that I am an admin of the newly created page?

推荐答案

好的,我正式是个脾气暴躁的人.进一步的搜索显示这是当前已知的错误.

OK, I am officially a numpty. A bit more searching reveals that this is currently a known bug.

https://developers.facebook.com/support/bugs/283375049150375/?disable_redirect = 0

问题是先前授予的权限不适用于新创建的页面,仅适用于现有页面.解决方法是删除所有当前权限(通过API或Graph Explorer),然后重新启用它们.

The issue is that previously granted permissions do not apply to newly created pages, only existing pages. The workaround is to delete all current permissions (either via the API or Graph Explorer), and then re-enable them.

我已经对此进行了测试,并且可以正常工作.我的问题解决了.我现在可以通过API管理我的新页面.

I have tested this, and it works. My problem is solved. I can now administer my new page via the API.

这篇关于API无法看到新的Facebook页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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