I am using GraphAPI to download posts from a Facebook Page that I am admin on.
https://graph.facebook.com/facebookpageID/posts
I would also like to download Private Messages and TimeLine Posts? How to do that?
Thanks!
Regards,
Cyril
You will need the conversations endpoint http://graph.facebook.com/PAGE_ID/conversations with read_page_mailboxes permission https://developers.facebook.com/docs/reference/api/page/
Related
I subscribed my page with feed event in pages webhook (https://developers.facebook.com/docs/pages/realtime/).
Also, setup the apps webhook product with feed subscribe and changed the domain name as webhook domain name. We have "manage_pages" permission on our app and our app is now live mode. I tried every possible way that I know and got after googling. But I couldn't receive facebook page feed real-time data in my webhook. Please help me to solve this problem.
Thanks so much.
Note: I tried before posting this question: https://stackoverflow.com/a/52039198/5695622 with the test user. But didn't get the real-time facebook page feed on my webhook.
The problem with the "Ngrok", that's why I didn't get the real-time facebook feed data. After chatting with facebook support they fix the problem.
Here is the facebook support link
I am trying to subscribe other's Facebook user's page to my application. Application has permissions like pages_messaging, public_profile, etc. Basically this is a messenger. But it complains and keep saying that I need a "manage_pages" permission. Why? I can't find docs in FB api regarding it. Thanks
Hi you should apply for manage pages permission in your app.To create a subscription you should have the manage_pages permission.
https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps
I was trying to access the details(likes and comments) of the photos which are posted to facebook from instagram app.
I coulnd't find any way to get that.
how can i confirm that a photo is posted from instagram?
Did you try the facebook endpoint /me/instapp:take ?
I can at least get my photos... don't know about public pictures...
Now I am able to get my instagram photos and others as well but the thing is we can't access anybody's instagram photo details for that we need to have access token of that user.
I am using the Graph API to retrieve the comments attached to a status update on a Facebook Page using a URL of this form:
"https://graph.facebook.com/status-ID/comments?access_token=XXX"
The above URL does not return any of the comments from a specific user while comments from all other users posted before and after that user’s are returned. Any idea what could be the cause of this?
Thank you.
This user has modified their Facebook Privacy Settings in the section How people bring your info to apps they use so that while you can view their comments via Facebook directly, you cannot view that same info via a Facebook App.
My Facebook App posts messages on user wall. I want to share this messages on my wall, same as I click share action under user message. How can I do it using Facebook Graph API?
Yes, you can share using the graph2 api. The way you do it is to use /feed edge and pass the post's url that you want to share as the link.
POST /v2.2/{page-id}/feed HTTP/1.1
Host: graph.facebook.com
link=https://www.facebook.com/{page_id}/posts/{post_id}
Standard Fb permissions to the post you are sharing do apply.
https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed
This was done today, in a local rails app, using FbGraph2 gem, with the above method.
According to the permissions for accessing posts via the API, it would appear that you cannot do this as it would require accessing the post of another user's timeline that you don't have permissions/an access token for.
Edit From further reading of the documentation you definitely cannot do this: https://developers.facebook.com/docs/graph-api/reference/v2.2/object/sharedposts#publish