PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, February 27, 2022

[FIXED] Facebook webhook for pages not working when reply to the message via Facebook Messenger?

 February 27, 2022     facebook-graph-api, facebook-messenger, facebook-php-sdk, facebook-webhooks     No comments   

Issue

I am creating a Facebook Webhook for page. It works well when the user sends a message to the page, the result of webhook is returned as an json object:

{"entry": [{"changes": [{"field": "conversations", "value": {"thread_id": "t_100015009722515", "page_id": 1863367573935021, "thread_key": "t_100015009722515"}}], "id": "1863367573935021", "time": 1510797239}], "object": "page"}

but when logging into the Facebook Messager of the page and reply to user, the webhook does not work?


-webhook-page: all subscribed
-permissions: messages, messaging_postbacks, messaging_optins, message_deliveries, message_reads, messaging_payments, messaging_pre_checkouts, messaging_checkout_updates, messaging_account_linking, messaging_referrals, message_echoes, standby, messaging_handovers, messaging_policy_enforcement, conversations, affiliation, attire, awards, bio, birthday, category, checkins, company_overview, culinary_team, current_location, website, videos, ratings, public_transit, products, product_review, price_range, picture, phone, personal_interests, personal_info, payment_options, parking, name, mission, merchant_review, mention, members, location, live_videos, leadgen, hours, hometown, general_manager, general_info, founded, feed, email, description


Solution

You should listen to message_echoes event in your application to see your messages.

Check out your app event listener.



Answered By - hya
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing