Facebook:通过 Javascript SDK 更新页面选项卡
我正在尝试更新 Facebook 上一系列页面上的选项卡。由于页面量很大,我正在进行批量调用以避免受到速率限制。批量调用工作正常。
话虽这么说,我正在尝试通过进行调用来更新页面选项卡 这里。我的添加功能运行良好,并且按预期运行。我使用相同的方法来获取和使用令牌,而且我知道这不是问题,因为我可以离线访问,因此它们不会过期(我每次页面加载时都会获取它们,但实际上可以只存储它们而不用担心它)。
两个调用都使用相同的页面 ID、应用 ID 和访问令牌,并且调用良好。我收到的错误是页面上不存在该选项卡,但是当我转到 https:/ /graph.facebook.com/PAGE_ID/tabs/APP_ID 我的选项卡显示在页面上。当我发布该内容时,我收到错误,它不存在。
我的问题是:有人已经开始工作了吗?如果是的话,你的电话是什么样子的,我是否遗漏了什么?
我会发布代码,但它非常长并且在我的程序中交织在一起,因此很难提取它。
I'm trying to update my tab on a series of pages on facebook. Due to the volume of pages I'm making batch calls to keep from being rate limited. The batch calls work fine.
That being said, I'm trying to Update a page tab by making the call as stated here. I have the adding functionality working fine, and it's operating as it should. I use the same method of getting and using tokens, and I know moreso that it's not an issue as I have offline access so they don't expire (I get them every page load, but in reality could just store them and not worry about it).
Both calls use the same page ID, app ID, and access token and the call is good. The Error I receive is that the tab does not exist on the page, yet when I go to https://graph.facebook.com/PAGE_ID/tabs/APP_ID my tab is there showing itself as on the page. When I post to that I get the error it's not there.
My question is this: Has anyone gotten this working yet and if so what did your call look like and am I missing something?
I would post code, but it's incredibly long and intertwined in my program so it would be difficult to extract it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前页面选项卡 API 存在一个小问题,这意味着在某些情况下您需要在调用中使用
app_
前缀您的应用 ID,因此/PAGE_ID/tabs/app_APP_ID
,尝试一下,看看是否有效。There's a slight issue with the page tabs API at the moment that means in some situations you need to prepend your app id in the call with
app_
so/PAGE_ID/tabs/app_APP_ID
, give this a try and see if it works.