Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook messenger app webhook subscription - Insufficient Permission

I have facebook messenger application (it is bot using MS Bot Framework, although I don't think it is relevant). It has webhook subscribed to page events. It used to work fine until few days ago, when the webhook was unsubscribed from page and when I am trying to subscribe again it tells me:

"Insufficient Permission You do not have the necessary permission for the specified Page to perform the requested action."

I am owner and admin on both the FB page and messenger app. I created similar page and messenger app and it works there, but I still need to use this old one. I tried subscribing to other pages which I own and admin, but with same result. I also tried it with other person who is admin.

I found other people experiencing same/similar message on FB, but not in this particular case. But I haven't found any solution.

Does anyone know what could be the problem? Or have anyone experienced this issue?

Thanks in advance for any ideas.

like image 782
Marek Bohm Avatar asked May 30 '17 08:05

Marek Bohm


Video Answer


2 Answers

After spending 3 days on this. Here is the solution for this.

  1. Go to your Facebook Profile - > Settings -> Apps and Remove YOUR APP from there.

  2. In Developer Dashboard Go to App Review -> Add Items

    1. manage_pages (This Permission Needed for Accessing page access tokens)

    Add above permission for review - with any simple video of above error

  3. Now go to Messanger-> Settings -> Token Generation Select page from dropdown List now it will open a popup (because you removed this app in 1st step) for app access permission , notice that now it will ask for manage pages permission Grant those permission and create access tokens

  4. Now try again subscribing Webhook to Pages

    This Works for me.

like image 81
Amit Kulkarni Avatar answered Oct 21 '22 21:10

Amit Kulkarni


You need to generate a token first. Under messager->Settings->Token Generation-> Select your page and you'll be prompted to give the permission. Grant all permission required, then you shall be able to subscribe or unsubscribe to pages you manage.

This process gives your application the token to validate if you have the moderator or higher rights to the page you want to subscribe to.

like image 43
Lee Avatar answered Oct 21 '22 19:10

Lee