图形API的manage_pages和publish_pages权限从访问令牌的作用域中消失 [英] Graph API manage_pages and publish_pages permissions disappearing from an access token's scope

查看:69
本文介绍了图形API的manage_pages和publish_pages权限从访问令牌的作用域中消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Graph API自动发布到页面.为了获得页面访问令牌,我首先使用Graph API Explorer的登录名登录了我的应用程序,并具有权限manage_pagespublish_pagespages_show_list.然后,我使用访问令牌工具对其进行了扩展,然后使用它在资源管理器中调用me/accounts来获得没有到期时间的页面访问令牌.

I am using the Graph API to automatically post to a Page. To get a Page Access Token, I have first logged in to my app using the Graph API Explorer's login with the permissions manage_pages, publish_pages and pages_show_list. I then used the access token tool to extend it, then used that to call me/accounts in the Explorer to obtain a Page Access token with no expiry time.

当我第一次登录我的应用程序时,它处于开发模式.我在访问令牌调试器中查看了访问令牌,发现它具有manage_pagespublish_pages权限.但是,当我将应用程序公开时,即使访问权限所指的用户是该应用程序的管理员,这些权限也会从访问令牌的作用域中消失.当我尝试在公共模式下进行API调用时,出现以下错误:

When I first logged in to my app, it was in development mode. I looked at the access token in the Access Token Debugger and saw it had the manage_pages and publish_pages permissions. However, when I make the app public, these permissions disappear from the scope of the access token, even though the user it refers to is an Admin of the app. When I try to make an API call in public mode, I get the following error:

(#200) This endpoint is deprecated since the required permissions manage_pages,publish_pages are deprecated

这确实让我感到困惑,因为我认为这些权限并没有被弃用.

This really confuses me, as I believe those permissions have not been deprecated.

当我将应用切换到公共模式时,有人知道为什么烫发消失/变得过时"了吗?

Does anyone know why the perms are disappearing/becoming "deprecated" when I switch the app to public mode?

推荐答案

我遇到了类似的问题.

联系Facebook后,事实证明这是一个应用验证问题,并且publish_pages权限适用于私人测试应用和经过适当批准的公共应用.

After contacting Facebook, it turns out this is an app verification issue, and the publish_pages permission is available for private test apps, and properly approved public apps.

这篇关于图形API的manage_pages和publish_pages权限从访问令牌的作用域中消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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