skip to Main Content

I created chatbot for Facebook. I tested in on one fanpage, got business and api permissions verfications from Facebook and I wanted to add the bot to more fanpages. I did it as before, I setted all Webhooks like messages, message_echoes but Facebook doesn’t call my app. I’m checking it in debuging tool that shows network traffic to my server.

I tried to remove and add callback, fanpages, but nothing gets change.

The first fanpage still works all fine, but others don’t call my bot on any message. Why?

2

Answers


  1. Chosen as BEST ANSWER

    So, problem was in my code. I was checking if request was sent using Symfony profiler. The problem was, it didn't save request if the process was stopped. And it was. I had "die" in some trycatch...


  2. assume you link your app to first fanpage with oauth dialog like this before.

    oauth dialog : (See: https://developers.facebook.com/docs/marketing-api/overview/authorization)

    https://www.facebook.com/v12.0/dialog/oauth
      ?client_id=<YOUR_APP_ID>
      &redirect_uri=<YOUR_URL>
      &scope=pages_messaging
    

    when linking another fanpage with oauth dialog,
    should click that edit settings button:
    edit setting button

    choose another fanpage:
    choose another fanpage

    now you receive webhooks from other fanpages.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search