Chatbot - generate page tokens for the pages you don't own using Facebook Login

前端 未结 2 1882
情歌与酒
情歌与酒 2021-02-03 15:54

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

I have created a chatbot and want to allow other FB Page to install my chatbot app, I c

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-03 16:33

    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.

    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.

    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: Enables your app to retrieve Page Access Tokens for the Pages and Apps that the person administrates.

提交回复
热议问题