Facebook API - public posts of a random user

894 views Asked by At

I'm looking into retrieving all public posts of an user from Facebook. Since Facebook has at least 2 APIs (or ways of accessing its data) as far as I know (FSQL and Graph) and always changes its APIs, I'd like to know the better way nowadays of achieving such a thing.

1

There are 1 answers

8
andyrandy On BEST ANSWER

FQL is deprecated, you can´t use it in a new App anymore.

Afaik you can´t even get public posts of a User without a User Access Token anymore, and you need the read_stream permission. Keep in mind that you will most likely not get that permission approved though:

This permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop and TV apps will not be granted this permission.

Source: https://developers.facebook.com/docs/facebook-login/permissions/v2.2

Anyway, this would be the correct endpoint: https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed

To sum it up: You can´t get the public posts of a random user.