cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
R0b0tn1k
New Member

Issues publishing Facebook Chatbot

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:

 

  1. Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.

  2. Under Settings on the side menu panel, select Basic .

  3. 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:

eg3.png

And we copied over the AppID + Secret to the Facebook Channel in PowerVA:

eg10.png

 

The guide says:

Enable API access for your Facebook app:

  1. Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.

  2. Under Settings on the side menu panel, select Advanced.

  3. Make sure Allow API Access to App Settings is set to Yes.

  4. Select Save Changes to confirm your changes.

1channel-fb-allow-api-access.png

This is our page:

eg7.png

Next is says:

 

Add Facebook Messenger to your app:

  1. Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.

  2. Go to the Dashboard. Under the Add a Product section, select Set Up on the Messenger tile.

2channel-fb-add-messenger.png

Now this was where it's a bit different from our view:

eg8.png

Still we clicked Settings.

 

The next step indicated is:

Configure Facebook pages:

  1. Sign in to the Facebook App that you want to add your bot to at Facebook for Developers.

  2. Select Settings under Products and Messenger on the side menu panel.

  3. 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:

eg6.png

 

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:

eg10.png

Next we're to add the credentials and tokens:

Configure the Facebook channel in Power Virtual Agents

  1. In Power Virtual Agents, select Manage on the side navigation pane, and then go to the Channels tab.

  2. Select the Facebook tile to open the configuration window.

     

     

  3. Paste the App ID, App Secret, Page ID, and Token you retrieved earlier into their corresponding fields.

     

     

  4. At least one page is required, but you can select Add Page to add additional pages.

     

     

  5. 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:

eg10.png

Next, we're to add the feedback url:

Connect your Facebook app to Power Virtual Agents

  1. Sign in to the Facebook app that you want to add your bot to at Facebook for Developers.

  2. Select Settings under Products and Messenger on the side menu panel.

  3. Under the Webhooks section, select Add Callback URL.

     

     

  4. 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:

eg10.png

 

Next:

 

  • Select Add Subscriptions for each page that you want to add the bot to.

     

     

  • Select the following fields:

    • messages
    • messaging_postbacks
    • messaging_optins
    • message_deliveries

This has also been completed (I dont have a screenshot of this).

Next:

Submit for Facebook review

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:

Make the app public and publish the page

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...

 

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Virtual Agents Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Virtual Agents!

Top Solution Authors
Users online (3,669)