I am using Graph API for fetching Facebook data including posts, friends etc. While retrieving posts, I am only getting the comments made by the post admin not his friends'.
My app is in development mode, the user which was used for testing have been added as a Developer in the app. A friend of the post admin tried logging in, granted permissions to access and then liked and commented on the post. but still not getting their data. Any idea?
Related
I would like to get all the posts and updates that are normally displayed in FB official application for MY account (this includes updates from my friends and liked pages).
I wasn't able to find any details how to get that, the only thing I've managed to get is my own posts.
Anyone got any experience with that using current Graph API verion (3.3)?
All the alternate FB clients (ex. Friendly) must be doing this somehow.
There is no way to get ANY data of users who did not authorized your App. Which means, there is no way to get posts of friends. You can only get your own friends, with the user_posts permission and the /me/posts endpoint. If some Apps access friend data without their authorization, they are most likely doing something that is not allowed.
Here is what I found in their API docs:
There are two scopes:
The user feed requires the user's permission
The public feed has fewer capabilities but doesn't require perms
Background:
I am using the Facebook Graph API to get every post that appears on a user's wall. To do this we have our user log in with Facebook and we ask for the user_posts permission from the user when he/she signs up. To get the posts we have been calling
me/feed?fields=created_time,id,message,from{name,picture.height(48).width(48),id}&date_format=U&access_token={The User's Token}
Question:
This returns all posts that appear on the user's wall except posts in which the user is tagged and the privacy setting is not public. How can I fetch these posts in which the user is tagged in but the privacy setting is set to friends or friends of friends?
Is it possible that this could be a bug?
The Facebook docs say:
Your app needs user_posts permission from the person who created the
post or the person tagged in the post. Then your app can read:
Timeline posts from the person who gave you the permission.
The posts that other people made on that person Timeline.
The posts that other people have tagged that person in.
I am having a hard time articulating the problem well so I will use my own Facebook account as an example. 1 out of the 3 most recent posts on my wall is a Post that I was tagged in. The post that I am tagged has a privacy setting of friends. The post I am tagged does not appear in the Graph API explorer output.
Here are the 3 most recent Facebook posts on my wall:
Here is the Graph API Explorer output:
Here are the permission on the token:
Privacy settings for the post not included in the Graph API Explorer output:
Just to restate the main problem: the graph API only returns posts that a user is tagged in if it has a privacy setting of public.
Thanks for taking the time to help.
This seems to be a bug. I reported it to Facebook. Here is the link to the bug report: https://developers.facebook.com/bugs/284611378567364 as of 8-3-16 at 10:20pm pacific it says bug confirmed.
You can fetch all post's information if your app status show live on developers dashboard ( https://developers.facebook.com/).
you can fetch tagged post information also .To get all posts info we have been calling
me/feed?fields=created_time,id,message,from{name,picture.height(48).width(48),id}&date_format=U&access_token={The User's Token}
I have never used facebook API.As part of my research project, I need to get activity data (the posts made, the links shared etc.) of a user's friends. Is it possible to get this data via facebook API? Do i need permission from user only or i need permission from user's friends too for accessing that data? I am assuming that since a user can see wall posts of his friends when he visits his friend's facebook profile, the same thing is possible using the API too.
I have a problem with Facebook. Let me explain what I'm trying to do. My friend granted me access to his fanpage as administrator. I would like to get all feeds from fanpage's wall, by using php script on my website. How can I do that ? I don't have any app id or secret id, because this is not an app - it's fanpage.
You can easily retrieve posts from feed connection of page (use posts connection if you only want posts Page own).
You'll need an application to do so because both posts and feed connection require any valid access_token for access.
Once you have access_token you may simple retrieve the posts with Graph API:
http://graph.facebook.com/PAGE_ID/feed?access_token=...
When I do a GET with my browser (already logged-in at Facebook):
https://graph.facebook.com/me/home?access_token={token}
the results are different than doing the same via a FB app using Facebook C# SDK.
Specifically, what the API is not returning are feeds posted by other applications.
Why can be this happening? Can't an application retrieve updates from other applications even if it has the read_stream permission?
I even requested for additional permissions: read_stream,user_activities,friends_activities,friends_likes,user_likes,read_requests
but nothing has changed.
What I need is to get ALL and the same stories an user would see at his FB news feed.
I use
me/feed
me/posts
me/statuses
me/links
Sample for a page: http://apps.facebook.com/anotherfeed/wallfeed.php uses the /pageid/feed
In filtering for my wall plugin. Even with perms, if a friend has interacted with a post and is not sharing interaction the post will not show in Graph. Technically unless you have perms from all friends, and friends of friends you can not fully emulate the wall feed.
I noticed the results are different according the geo-localisation.
If your server is hosted in another country it might be the reason why