M
M
Makar Gerasimov2016-08-16 20:06:32
Facebook
Makar Gerasimov, 2016-08-16 20:06:32

Why am I getting incomplete facebook post data?

Good evening. I am loading certain reviews from the company's page.
A page like https://www.facebook.com/userbane/posts/postID
I generate a token and send the ID to graph.facebook.com
In response, I get only part of the data for this post. For example, I don't get the most important data (who added this post, name, avatar)...

{
  "message": "Текст отзыва",
  "start_time": "2016-07-15T12:59:24+0000",
  "type": "places.rates",
  "data": {
    "rating": {
      "value": 5,
      "scale": 5
    },
    "review_text": "Текст отзыва",
    "is_draft": false,
    "language": "ru",
    "generic_place": {
      "id": "***",
      "title": "companyName",
      "type": "place",
      "url": "https://www.facebook.com/companyName/"
    }
  },
  "id": "***"
}

How to get the ID of the person who added this post?
I could pull out the username from the link and get the user ID, but without authorization of this user in the application, I won’t get it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Makar Gerasimov, 2016-08-17
@MacFiss

Everything is quite simple. It needed a little deeper into the dock. dig.
The solution lay on the surface. We have a direct link to the feedback:
Cut out the POST_ID and access the API with it:
By default, when accessing without arguments, the information is displayed incomplete and illogical.
In the same place, we get USER_ID and can already load more detailed public information about the user. For example an avatar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question