I
I
Ildar Saribzhanov2016-08-26 10:55:23
Facebook
Ildar Saribzhanov, 2016-08-26 10:55:23

How to get user's posts in facebok?

You need to get the last n-posts of the user, at least in the format: text, date, link to the post.
It is clear that this is done through {User_id}/feed or {User_id}/posts, but I get empty arrays (Although this works for groups).
What access do I need? Is it necessary to get these accesses through the verification of the application? Maybe there are easier ways, public methods without creating an application like in vk? And if only through verification, then for each site you will need to create your own application and again request the necessary rights?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Makar Gerasimov, 2016-08-26
@Bluz

In general, things here are deplorable. First of all, facebook loves privacy and without a user token you won't get any more information than: "firstname lastname", "id". So create an application, place the code on the information collection page, after the person logs in, take the token and store it in the session, for example. After you can already work with it on the server side for a while.
For example, if you are interested in requesting posts from a corporate page: get a user token (for example, a page editor), request a page access token, and only then send requests with this token
I also want to note if you want to take information and store it on your server. That is copyright infringement. The fb agreement is as follows: each user who stores information in fb transfers his copyright to the service. The following follows from this: if fb finds out that you duplicate information on your server, it will most likely block your application. (but you can forget about it if you are a small company / or not a legal entity at all) Here in our company we have difficulties with this :/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question