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
Here are the steps that i am following to subscribe a page to generate long lived page token (that never expires).
manage_pages,pages_show_list,public_profile,pages_messaging
scopes.On a server side api call, we extend the short term token to make it a long-lived token.
List all the user pages using the account API.
[GET]${FB_BASE_URL}/me/accounts?access_token=${accessToken}&fields=picture,id,name,access_token,username,perms
Allow the user to select one of the pages and then you can use the subscribe API to subscribe that page to our application.
[POST]${FB_BASE_URL}/${page.id}/subscribed_apps?access_token=${page.access_token}
;
Notes: