Facebook Page Messenger not working with Webhook API - facebook

I followed the steps to setup the Facebook Messenger platform. I have successfully setup the webhook, I receive messages on my webhook.
For webhooks to work, I obviously had to subscribe my page, see the screenshot.
Now the strange problem is, if I keep my page subscribed to a webhook, my facebook page messenger doesn't show any thing.
As soon as I unsubscribe my page for webhook, page messenger nicely loads.
What can I do ?

I just checked mine and it is not working, which it was yesterday, so I'm confident this is a bug.
I'd suggest opening a bug report, and in the meantime, you can download the pages for messenger app Facebook makes to access the messages while waiting for a fix.

Related

How to reset unread_count on Facebook Messenger API?

So I created a ChatBot with Messenger API and I get the messages that has been sent to the Facebook Pages. I also get the unread_messages which is from "unread_count" but I couldn't find how to update the unread_count for each conversation. There is no answer for that in the docs.
It doesn't go away when i send message from my chat. It only goes 0 when I manually login to https://business.facebook.com/ and click the chat.
There is a "sender_action" parameter which has "mark_seen" indicator but it is only for visual seen. It doesn't do anything on the unread_count.
Do I have to handle this on my backend or Facebook API has the solution?

Instagram Insight Webhook

Currently, I have a webhook subscribed to Instagram story_insights on my Facebook app. The Facebook app has a bunch of Facebook Business pages tied to Instagram Business accounts. Following the steps here I have successfully set the webhook to work with test data from Facbeook; however, the webhook is never fired when a story ends/is deleted.
I am unsure how else to approach this. Has anyone encountered this issue before?

Facebook Messenger Bot Review

I submitted my bot for review today.
Unfortunately, Facebook doesn't seem to be able to access the bot as it doesn't reply to the test messages.
However, when I promote a friend to "Tester" in the Developers app, the bot works just fine.
Do you guys have any idea on why the bot doesn't answer to facebook tests ?
Thanks
One thing that you should make sure before posting your Messenger Bot for review, is if your page, the bot is connected with, is published.
If the Facebook Page isn't published then Facebook's reviewers can't access your bot.
As Christos Panagiotakopoulos mentioned, Facebook requires that the page associated with the bot is published.
https://developers.facebook.com/docs/messenger-platform/app-review
I've experienced this as well. Unfortunately the instructions were not listed when making the review request, which can be confusing for new users.

Subscribe to Facebook Page photos using Pages API webhook

TL/DR;
With page webhook in place, if I upload new photo to the Page via Photos Facebook notifies my webhook. If I do the same on page timeline — it doesn't.
Details:
I want my application to receive new posts from some public Facebook page. Posts may have a photo attached or may not.
What have I done:
In my Facebook app settings I've created a Page Subscription in Webhooks section. I've chosen 'feed' field.
I've subscribed my app to the target page using "/subscribed_apps" endpoint. Page access token with "manage_pages" permission was used for that.
Problem:
Facebook is calling my webhook and my app receives text posts from the page, so basically subscription works. But if I attach an image to the post, Facebook doesn't trigger the webhook. I don't see any other sensible field to choose for Page Subscription and I've tried almost all of the other fields as well with no luck.
I'm stuck. It looks like I need to fine-tune some permission somewhere, but just don't see which else to try. Is it ever possible to subscribe for new page photos?
UPD:
If I upoad new photo via Photos Facebook notifies my webhook. If I do the same via page timeline — it doesn't. Looks like a bug
UPD2:
Fixed by Facebook team. Now works as expected
Well, this is confirmed bug in Facebook Realtime API: https://developers.facebook.com/bugs/1740620369486641/
UPD:
Fixed by the Facebook team. Now subscription works as expected

Facebook: How to post on own page using graph api without login

I own a blog like website, and as part of promotions I have a corresponding facebook page. My website contents are dynamic & when it gets updated(through a bot), I want the facebook page also to be updated by an automated post/publish from the bot which shows up the updates to the page viewers.
I could create a facebook page, and my bot programme which updates the web content is also able to publish the content on my facebook page using graph apis. But the posts are not publicly visible(Visible to only me/admin).
I could learn that it could be because my app through which my bot program is publishing to my facebook page is not public.
App->Status & Review, Status (Tab)
(Do you want to make this app and all its live features available to the general public?).
To make the app public, there is a review process which checks the facebook login button used in the website but my posts are through a backend bot and not through user action. My website is like a blog without user authentication so can't think of adding a login there.
Is it possible without having user login on the page? Also, If I post using twitter apis and link/configure my twitter account to my facebook page, it works.I guess this is not a new problem and many brands have automated it already, so need to understand how.
Am I missing something?
Apologies: I have checked previous posts on the same topic, but couldn't find relevant answers for the current Facebook version & policies.
Without the Login Review process, your posts can not be visible to the public.
To get it working, just send your page management tool (with the login dialog) for the review. Once they review it and accepted, you may change the flow a bit eg: skip the login part and allow auto posting.