0

I use this API to take some notes from facebook page: https://developers.facebook.com/docs/graph-api/reference/v2.8/user/feed

It returns me object:

"data": [
    {
      "story": "pdated their profile picture.",
      "created_time": "2017-01-13T23:02:10+0000",
      "id": "439421442879448_707028796118710"
    },

How can I get photo and name of author?

Hamama
  • 177
  • 4
  • 16

1 Answers1

1

You have to ask for the field:

/me/feed?fields=from

Result:

{
  "data": [
    {
      "from": {
        "name": "xxx",
        "id": "xxx"
      },
      "id": "xxx"
    },
    ...

...or to get pictures too:

/me/feed?fields=from{id,name,picture}

For Pages, just replace "me" with the Page ID.

andyrandy
  • 72,880
  • 8
  • 113
  • 130