Facebook API does not return full message data

I am using the Facebook API to get a shared channel. I have created a basic application to receive appIdand secret. When I make a call PUBLIC_PAGE_ID/feed, I can get the correct list of messages in JSON, but they lack the entire field that I need, described in the documents , and there is only a message, created_time and id:

{
  "data": [
    {
      "message": "...",
      "created_time": "2015-06-11T07:57:05+0000",
      "id": "23X12XXXXXX9836_11XXXXXXXX610XXXX52"
    }, 
    ...

Why are all the other data missing?

+4
source share
2 answers

The answer to your request: /id/feedis the default answer. To access more data, you need to pass a parameter fieldswith the keyword of the data you want to receive.

For instance: <id>/feed?fields=id,message,picture,shares

:

{
  "data": [
    {
      "id": "1234567890",
      "message": "Message",
      "picture": "http://fbcdn.com/xxxxxx.jpg",
      "shares": {
        "count": 0
      }
    }
}
+12

, , , , , - , , .

0

All Articles