Chatbot-使用Facebook Login为您不拥有的页面生成页面令牌 [英] Chatbot - generate page tokens for the pages you don't own using Facebook Login

查看:92
本文介绍了Chatbot-使用Facebook Login为您不拥有的页面生成页面令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在您不拥有的页面上安装Facebook Chatbot吗?

Does anyone know how to install Facebook Chatbot on the page that you don't own?

我创建了一个聊天机器人,并希望允许其他FB页面安装我的聊天机器人应用程序中,我可以为我管理的FB页面生成page_access_token,但是如何获取我不是管理员的FB页面的page_access_token?

I have created a chatbot and want to allow other FB Page to install my chatbot app, I can generate page_access_token for the FB Page that I admin, but how to get the page_access_token for the FB Page that I am not the admin?

谢谢!

Joel

推荐答案

基于我对文档的理解, Fb应用程序需要实现 Facebook登录。该页面的管理员将需要登录,以进行登录。您的应用,并授予您的应用访问 manage_pages 权限的权限。获得该许可后,您就可以使用单独的API调用来请求页面访问令牌。

Based on my understanding of the docs, your Fb app needs to implement Facebook Login. The admin of the page will need to "login" to your app and grant your app access to the manage_pages permission. Once you get that permission, you can then request for the page access token with a separate API call.


查看有关页面访问令牌的表:这些访问令牌与用户访问令牌类似,不同之处在于它们提供对API的许可读取,写入或修改属于Facebook页面的数据。要获取页面访问令牌,您首先需要获取用户访问令牌并请求 manage_pages 权限。获得用户访问令牌后,您便可以通过Graph API获得页面访问令牌。

See the table regarding page access tokens: These access tokens are similar to user access tokens, except that they provide permission to APIs that read, write or modify the data belonging to a Facebook Page. To obtain a page access token you need to start by obtaining a user access token and asking for the manage_pages permission. Once you have the user access token you then get the page access token via the Graph API.

页面访问令牌:页面访问令牌在Graph API调用中用于管理Facebook页面。要生成页面访问令牌,页面的管理员必须授予名为 manage_pages 的扩展权限。授予此权限后,您可以使用以下Graph API请求检索页面访问令牌...

Page access tokens: Page access tokens are used in Graph API calls to manage Facebook Pages. To generate a page access token, an admin of the page must grant an extended permission called manage_pages. Once this permission has been granted, you can retrieve the page access token using the following Graph API request...

manage_pages :使您的应用能够检索此人所访问的页面和应用的页面访问令牌

manage_pages: Enables your app to retrieve Page Access Tokens for the Pages and Apps that the person administrates.

这篇关于Chatbot-使用Facebook Login为您不拥有的页面生成页面令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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