Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get facebook friends posts using graph API

I am trying to build an application which requires access to friend's feed posts. Is it possible to retrieve friend's wall posts using graph API? I checked out in the developer console and found no such funstionality. If possible can someone explain me how do i go about retrieving it?

like image 889
Aarish Ramesh Avatar asked May 04 '15 17:05

Aarish Ramesh


People also ask

How do I get Facebook posts on API?

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.

How do I share a Facebook post on a 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. Standard Fb permissions to the post you are sharing do apply. This was done today, in a local rails app, using FbGraph2 gem, with the above method.

Does Facebook use graph API?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

How do I create a Facebook Graph API?

Register as a Facebook Developer. A Facebook App – This app will be for testing so there is no need to involve your app code when creating this Facebook App. The Graph Explorer tool open in a separate browser window. A brief understanding of the structure of the Facebook Social Graph from our Graph API Overview guide.


2 Answers

friend permissions are gone, and read_stream will not get approved by Facebook unless you are building an App for a platform without a native Facebook client. So there is no way to get access to friend walls - unless they authorize your App too. You can use user_posts for that.

You can read more about all the changes in the changelog: https://developers.facebook.com/docs/apps/changelog

Facebook improved privacy for users, that´s why you can´t get any details of users who did not authorize your App.

like image 63
andyrandy Avatar answered Oct 29 '22 11:10

andyrandy


What you're asking is no longer supported by Facebook.

Read this article by one of the apps that were affected by so.

Sorry for not helping you more.

like image 21
Artur Peniche Avatar answered Oct 29 '22 12:10

Artur Peniche