具有read_page_mailboxes权限的Facebook页面访问令牌 [英] Facebook Page Access Token with read_page_mailboxes permission

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

问题描述

我需要对我网站上的页面评论发送私人回复.我是页面和应用程序的管理员.

I need to send private replies to page comments from my website. I am admin of the page and app.

Facebook的图的api文档状态如下:需要具有read_page_mailboxes权限的Page访问令牌才能创建消息",但没有说明如何获得具有此类权限的令牌.

Facebook's graph's api doc states following: "A Page access token with the read_page_mailboxes permission is required to create a message" but does not say, how to get the token with such permission.

我已经尝试过来自"我/帐户","/{page_id}?fields = access_token "的令牌,甚至还从graph api资源管理器生成了60天的访问令牌,但我收到"OAuthException",并显示消息需要具有read_page_mailboxes权限才能管理该对象".有什么想法吗?

I have tried tokens from "me/accounts", "/{page_id}?fields=access_token" and even generated 60 day access token from graph api explorer, but I get "OAuthException" with message "Requires read_page_mailboxes permission to manage the object". Any ideas?

推荐答案

您当然需要在登录过程中向用户询问该权限,就像其他任何权限一样.

You need to ask the user for that permission during login, of course – like with any other permission.

授予该权限的是用户(页面管理员).只有这样做之后,页面访问令牌才会包含"该权限.

It is the user (page admin), that grants this permission. Only after that is done, the page access token will "include" that permission.

这篇关于具有read_page_mailboxes权限的Facebook页面访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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