I am trying to fetch my fb page post's comment on my website but webhook is not getting called when comments arrive,
I have tested with test feed from developers account and i am getting successfully response on my webhook,
but when i try with live page and comment on my page then webhook is not getting call and also i want user information who comment.
Please guide with configuration settings
Related
I am new to FB APIs. I want to subscribe to Instagram business accounts and receive mentions in comments, captions, or stories webhooks.
I am following the following docs: https://developers.facebook.com/docs/instagram-api/guides/webhooks/#install-app
The problem is I am able to subscribe to Facebook page fields like mention, feed, etc. using POST /{fb-page-id}/subscribed_apps?subscribed_fields=mention&access_token={fb-page-access-token}. But I am not able to subscribe to my Instagram business account.
The given syntax in FB docs doesn't works:
?access_token={access-token}
&fields={fields}
I can't put Instagram fields like mentions, comments in the above code it raises errors as well as when I replace the fb-page-id with the id of the Instagram account I get Unsupported post request.
Can anyone tell me what I am doing wrong here?
I stumbled into a facebook post where when user click the like button, or share the post or post a comment, a facebook page bot will automatically message the user. Here is the exact post:
https://www.facebook.com/ninjateam.org/posts/1799394500352455
I'm trying to look into the facebook developers API documentation on how to do those kind of functionality but always failed. Can you point me to the correct path where to start or what resource is used in those kind or post?
I have subscribed my facebook app to receive webhook updates on feed and it works great with posts, likes and comments. However, I'm not receiving post shares at my endpoint even though facebook docs states that the feed subscription also includes share (Reference: https://developers.facebook.com/docs/graph-api/webhooks/reference/page --> feed section).
Anybody has an idea?
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
I'm working on a plugin for a Wordpress blog that posts a link to every article published to a Facebook Page associated with the blog.
I'm using the Graph API and I have authenticated myself, for the time being, via OAuth.
I can successfully post a message to the page using curl via a POST request to https://graph.facebook.com/mypageid/feed with e.g. message = "This is a test" and it published the message.
The problem is that the message is "from" my user account. I'm an admin on this test page, and when I go to Facebook and post an update from the web, the link comes "from" my page. That's how I'd like this to be set up, because it looks silly if all the shared links are coming from a user account.
Is there a way to authenticate myself as a page? Or is there an alternate way to POST to a page feed that doesn't end up being interpreted as a comment from a user?
Thanks for any thoughts or suggestions.
To post as the Page, you need to get an access token for the page by getting an access token for an admin of the Page with the "manage_pages" and "publish_stream" permissions. Then, using that access token, hit https://graph.facebook.com/me/accounts?access_token=THE_ACCESS_TOKEN. You'll get a JSON output of all the Pages that user admins and in there you'll see an access token for each Page. If you use one of those access tokens to POST your message, you will be doing so as the Page. The process is outlined in the documentation here (sorry, it's kind of buried).
Ah, it's a bug.
you need to use enable_profile_selector
http://developers.facebook.com/docs/reference/javascript/FB.login
Please have a look at the comments by "Nam Thai" on this thread: http://www.takwing.idv.hk/tech/fb_dev/faq/graphapi/graph_27.html. This solved the problem for me.