Facebook Page Private Replies and Chat Bot - facebook

I have created a page private reply app and its working as expected . I have the page subscription with feeds to the webhook on this app.
Now, I have created another app for Chat bot , but the app is not working. I want to know if both of them can work at the same time or I have to crate a single app which will handle both of these ?

Related

Page Webhooks + Messenger Event

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!

Azure Web App Bot Webhook Text With Facebook Always Drop On V4

I got a sample echo bot hosted on Azure Web App Bot, and link up with facebook messenger.
Every configuration setup correctly, when I type message in FB Messenger, some of my text were actually not receiving in /api/messages endpoint.
I used ngrok on Azure bot web app to replace it api endpoint with my local url and found out that some messages did actually fail to delivered to the endpoint.
I had setup my web app to be always on mode, and server location put in Central US. But it still has this performance issue.
Because our bot starting migrate to V4, and found out that the suggested action card always not responding after user click in Messenger (sometime it's works), it's normally reply with local bot emulator.
Any ways can improve this or minimize user lost their action in conversation due to the dropping message?
OK finally found out that delay/random reply caused was single FB page subscribed to multiple FB app.
Just try to make sure you only have a single page subscribe to a single FB app , else it will randomly send the webhook message to one of your subscribed app and cause the performance issue.

Facebook Messenger: How do I get back to the greeting text?

I added the Facebook Messenger chat bot to my website. I added a greeting and everything is working fine.
Then I tested the chat by typing a chat in it.
Now I am unable to get back to it showing the greeting text. I deleted the conversation on messenger, but now it is just showing a blank chat bot on my website.
How do I get back to the normal greeting?
Open your web page in incognito mode (cmd+shift+n - for chrome on Mac). Click on the Facebook Messenger Web Chat, login to the Facebook and you should have a fresh chat with greeting as well.

Facebook Chat bot not working for public

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

Facebook Messenger Bot - View Greeting Text

I'm developing a bot for FB Messenger and want to set a greeting text for the first time a user interacts with the bot.
I followed what the docs say on setting the greeting text. Now I would like to test it and view the greeting message. However, I am stuck because I have already sent the bot messages and hence am not able to view the bot as a new user.
How is it possible to viewing the greeting message UI as if you were a new user?
Unfortunately there is no "official" way to see the greeting message UI as if you were a new user.
But, a workaround for this is to delete the conversation (from your messenger application or from Facebook's chat) and reinitiate it.