Rookie facebook api/developer user here. I have a couple questions hoping someone can shed some light on.
My use-case:
Facebook page user leaves rating/review
App receives webhook event with information about webhook event
(https://developers.facebook.com/docs/graph-api/webhooks/reference/page)
Using that event info, we initiate a messenger chat conversation with
the user
This seems like a common scenario.
My understanding of what needs to be done:
Create a facebook app
Add page webhooks product to app (specifically subscribe to ratings
event)
Wire up webhooks to my API (exposed via ngrok)
Add messenger product to app
...Somehow initiate convo with user (using reviewer_id??)
Does anyone have a good description of how to do this from end-to-end?
I have done most of this, but I cannot figure out how to do this in the test/sandbox facebook. Do I need to create a test version of my app, create a test page, and then use the graph api to subscribe the test app to the test page?
Thanks guys. The docs are nice and all, but there's no detailed directions on testing this end-to-end on the sandbox facebook. I don't have time to wait for an app review to test the functionality.
Thanks in advance!
Related
I am working on creating an App to manage comments on my Instagram account, I will use webhooks to get live comments notifications and if I found those comments abusive I will delete them, but to use webhooks live notifications I need to do app review and in app review, they are asking a video on how I will be using my app, but without webhooks notifications, I cannot show them how I will be using it.
Can someone tell me how I will move forward from here?
I built a chatbot that I plan to use with my pages. It's nothing special, only for development purposes. I used fastapi + mongodb + RASA NLU. It's all working fine with the integration by creating the app and subscribe to the webhook. the only problem I have is that I need to create one app per page. How can I link my chatbot to my page without creating an app all the time? I noticed ManyChat and ChatFuel can do this but I'm lost the fb developer documentation.
for reference, here's my current webhook setup.
https://myapp.com/webhook/<pageid_01>/
https://myapp.com/webhook/<pageid_02>/
https://myapp.com/webhook/<pageid_03>/
it's a workaround, of course. it works but I don't really want to maintain too many fb apps. not that I have many but between me and my friends who want to use my chatbot, it's not a pretty sight.
You can use the same webhook to handle events from multiple pages, but i don't think there is a way to make one fb messenger app for multiple pages! because the app will be receiving page-scoped unique Ids
You can just connect multiple pages to same app. And when you receive the event on your webhook, you can check the page-id and based on page-id, perform that page specific actions.
I have a chat bot working fine for a single page.
My app is currently live and available to the public.
I generated page tokens using Facebook Login.
But I want to integrate same chat bot with other pages also.
I follow below guidelines to subscribe other page in my app.
https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps
But other pages are not hitting my webhook.
Screenshot of may app and messenger review are below.
Second image of messenger review
Please suggest me how i integrate my app for multiple pages.
Am I missing any step?
Thanks in Advance
I am trying to build a chat bot which can automatically sent alert to users who subscribed to my own page. However I can not find any support from facebook messenger for this task. How can I implement it?
Unfortunately fb messenger is not an one stop shop solution yet. I'd recommend using this excellent npm module node_schedule.I guess it should fit your needs.
I want to make my bot available for download for testing purpose without
going through the actual review process of Facebook? This is just for testing purpose as I want to test how exactly end user will
download my bot from FB messenger platform and then will start using my bot. Is there a way/platform to try this? Can I do that?
(currently i am testing am sending message to my bot using FB page's messenger link as indicated in almost all the blogs/sites including FB's official
site.)
Can you please provide any pointers/links on this?
I see two options for you:
You want users to test your bot on Messenger:
Simply add them as testers in your bot corresponding Facebook page then ask them to look for your bot in their Messenger app.
Or you want to test your bot behaviors:
Enter botgen the chatbot generator I'm currently working on, which could help you test more publicly the bot you're working on. (assuming your bot doesn't need coding and is all about pattern conversation).
Just use the designer interface to design, run and test your chatbot.
Publish it and share it with your actual test users.