Hi all,
We're trying to publish a chatbot to Facebook, but we're having an issue with this process.
We're following this guide, but it's not working:
https://docs.microsoft.com/en-us/power-virtual-agents/publication-add-bot-to-facebook
I'm going to add text in red to differentiate from the Microsoft KB text.
According to the guide:
Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.
Under Settings on the side menu panel, select Basic .
Copy the App ID and App Secret. You will need these when you configure the Facebook channel in Power Virtual Agents.
This is our Facebook Developer's page for the App we created:
And we copied over the AppID + Secret to the Facebook Channel in PowerVA:
The guide says:
Enable API access for your Facebook app:
Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.
Under Settings on the side menu panel, select Advanced.
Make sure Allow API Access to App Settings is set to Yes.
Select Save Changes to confirm your changes.
This is our page:
Next is says:
Add Facebook Messenger to your app:
Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.
Go to the Dashboard. Under the Add a Product section, select Set Up on the Messenger tile.
Now this was where it's a bit different from our view:
Still we clicked Settings.
The next step indicated is:
Configure Facebook pages:
Sign in to the Facebook App that you want to add your bot to at Facebook for Developers.
Select Settings under Products and Messenger on the side menu panel.
Add the pages you want to add the bot to by selecting Add or Remove Pages under the Access Tokens section. You can also create a new page by selecting Create New Page.
We added our existing page:
Ok, next:
Copy the Page ID and Token for each of the pages that you want to add the bot to. You'll need to select Generate Token for each page. You'll need these when you configure the Facebook channel in Power Virtual Agents.
We've done this:
Next we're to add the credentials and tokens:
In Power Virtual Agents, select Manage on the side navigation pane, and then go to the Channels tab.
Select the Facebook tile to open the configuration window.
Paste the App ID, App Secret, Page ID, and Token you retrieved earlier into their corresponding fields.
At least one page is required, but you can select Add Page to add additional pages.
Select Add and wait for the success confirmation message. Once successful, copy the Callback URL and Verify token. You'll need these when you connect your Facebook app to Power Virtual Agents.
This has been completed:
Next, we're to add the feedback url:
Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.
Select Settings under Products and Messenger on the side menu panel.
Under the Webhooks section, select Add Callback URL.
Provide the Callback URL and Verify token from the Configure the Facebook channel in Power Virtual Agents section and select Verify and Save.
that's also been added:
Next:
Select Add Subscriptions for each page that you want to add the bot to.
Select the following fields:
This has also been completed (I dont have a screenshot of this).
You need to submit your app for Facebook review before you can make your Facebook app public. Facebook requires a Privacy Policy URL and Terms of Service URL. You need to provide those on the Facebook basic app settings page (after signing in to your app at Facebook for Developers, select Basic under Settings on the side menu panel).
We added the URL's, and we dont see a Submit for review.
Lastly:
Until the app is published, it is in Development Mode. The bot will not be public and it will work only for admins, developers, and testers.
After the review is successful, in the app's Dashboard under App Review, set the app to Public. Ensure that the Facebook Page associated with the bot is published. The status appears in the Pages settings.
We published our bot, but it's not working. If you try to chat with it, you get the default Messenger greeting. We dont know what's wrong...
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional