Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Api Messenger subscribe webbook programmatically

In this Facebook docs page we learn how to create a bot for receiving and sending messages through a Facebook Page.

Is there a way to connect between a webhook and a page programatically and not manually?

If my product is a generic bot for Facebook Messenger, I want to be able to register him to pages without asking my clients to grant me an admin permission to their Facebook Page.

like image 643
Asaf Nevo Avatar asked Jul 04 '16 10:07

Asaf Nevo


1 Answers

In case anyone else still has this problem, in addition to using the app subscription edge and the page subscription edge, you also need the following permissions: manage_pages, pages_messaging, read_page_mailboxes. The page was not showing up for me in the app > messenger settings until I added the read_page_mailboxes permission.

like image 133
Lucas Avatar answered Oct 02 '22 16:10

Lucas