-3

When using facebook apps like chatfuel and manychat (which are bot creation platforms), these apps request permissions that allow them to manage my pages and send messages.

I want to create a similar app that allows users to send messages from their pages through my app, but I can't find how to request such permissions in Facebook's documentation.

ManyChat's permissions, these are the permissions I want my app to request also.

m0etaz
  • 953
  • 1
  • 8
  • 21
  • did you check out the official docs for facebooks messenger bots already? they are pretty good, and that´s where you need to start. – andyrandy Aug 29 '17 at 19:17
  • did you also try to create a bot on your own? there is example code and a very good step by step tutorial: https://developers.facebook.com/docs/messenger-platform/guides/quick-start – andyrandy Aug 29 '17 at 19:23
  • @luschn yes i can request these permissions for my own bot (I did that and it worked). but now i want to create an app that powers bots for other people/pages. – m0etaz Aug 29 '17 at 19:25
  • it works the same way, you just need to send it in for review: https://developers.facebook.com/docs/messenger-platform/product-overview/launch – andyrandy Aug 29 '17 at 19:29
  • no, when using chatfuel and manychat it works instantly, without being reviewed by facebook – m0etaz Aug 29 '17 at 19:30
  • 1
    of course, because you are using THEIR bot, and THEIR bot is already approved – andyrandy Aug 29 '17 at 19:38
  • then how can I make my app request from users to connect MY (approved) bot to THEIR page? – m0etaz Aug 29 '17 at 19:42
  • You let a page admin login to your app, and grant it the necessary permissions. And then you subscribe your app to the page for messenger webhook updates ... – CBroe Aug 30 '17 at 07:32
  • @CBroe that's exactly what I'm trying to do! how can i make my app request those permissions from the page admin? – m0etaz Aug 30 '17 at 07:37
  • By implementing Facebook Login ... https://developers.facebook.com/docs/facebook-login/permissions/requesting-and-revoking – CBroe Aug 30 '17 at 07:41

1 Answers1

-1

You need to be given the administrator role for each Page, then connect your app to the Page and generate a page-scoped token for each one.

amuramoto
  • 2,838
  • 1
  • 11
  • 15
  • _“You need to be given the administrator role for each Page”_ - no, you don’t. The usual way to make this work, is that a page admin logs into your app, and grants it the necessary permissions. – CBroe Aug 30 '17 at 07:31