I need to create a facebook app in which, when a user subscribes to my app i have to modify the callback url of the messenger webhook of one of its pages (the one he selects), is this possible with the facebook api?
Without knowing what I have to do yet and having spent hours in the documentation and searching, I think the steps to follow would be something like this,
1 create the app
2 get the necessary permissions and approval from facebook
3 encode facebook login in my website
4 once the user logs in, get user token
4 list the user's pages, retrieved with their token.
5 get token from page selected by the user
6 get token that does not expire from the user's page
7 get by means of the end point "/ sucribtions" modify the calback url of the messenger webhook of the page I select
is this possible programmatically?
Thanks in advance.