Cannot get Facebook channel to work with Azure Language (chat) bot.

MSL 0 Reputation points
2024-06-03T11:59:52.26+00:00

Hi, I've set up an Azure chat bot that works beautifully on my website (and in Azure's "test in webchat").

I've since tried to integrate that into my Facebook messenger so that people who message my business site via messenger are conneceted to the chatbot. I've followed these instructions to the letter and set my app to "Live" https://learn.microsoft.com/en-us/azure/bot-service/bot-service-chAannel-connect-facebook?view=azure-bot-service-4.0&tabs=messenger#test-your-bot-in-facebook

When I log in as the admin profile and try to message the business page - nothing happens.

How do I test this? It seems I can't test it to get it reviewed and I cant get it reviewed without it being tested.

Really appreciate your help.

Mark.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
840 questions
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
421 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 52,686 Reputation points
    2024-06-03T19:35:51.19+00:00

    Hello MSL

    Thanks for reaching out to us, the document you shared is not available. Are you following the document here - https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-facebook?view=azure-bot-service-4.0&tabs=messenger

    Could you please check if you set everything correct on both Azure Bot Side and Meta side? Below is a check list you may want to go through -

    1. Verify Facebook App Settings

    Make sure that your Facebook app settings are configured correctly:

    App Review Status: Ensure that your Facebook app is in "Live" mode. If it's in development mode, your bot won't be accessible to users other than developers and testers.

    Page Roles: Make sure that the Facebook user account you are using to test the bot is listed as an admin, developer, or tester for the Facebook page associated with your bot.

    1. Test Users and Permissions

    Messenger Platform: Check the Messenger settings in your Facebook app dashboard. Ensure that the page subscription is correctly configured and that the required permissions are granted.

    Page Messaging: Verify that the page is configured to allow people to send messages to it. You can check this under your Facebook page settings > General > Messages.

    1. Testing the Bot

    Webhook Verification: Ensure that your bot's webhook endpoint is correctly set up in your Azure bot service settings and that it is verified by Facebook. This involves subscribing your Facebook page to your webhook URL.

    Webhook Logs: Check the logs in your Azure portal to see if there are any errors or incoming messages from Facebook. This can help diagnose if messages are reaching your bot.

    Message Handling: Review how your bot handles incoming messages from Facebook. Ensure that your bot code is configured to respond to messages appropriately.

    1. Facebook App Review Process
    • App Review Requirements: If you are planning to make your bot publicly available beyond testing, you'll need to submit your Facebook app for review. This process ensures that your bot complies with Facebook's policies and guidelines. However, you can still test your bot with users who have specific roles (admin, developer, tester) on the Facebook app before completing the review process.

    I hope this helps, looking forward to your response.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.