D
D
Dmitry Serzhenko2012-05-30 13:57:43
Facebook
Dmitry Serzhenko, 2012-05-30 13:57:43

How to get records from Timeline via Graph API?

Hello!
I came across a difficulty when getting records through the Graph API.
The difficulty is this: when using the Android app for the social network Path , the photos are cross-posted on Facebook. On my Timeline, they are displayed as separate events:
5468836e0dee0f3056490dac8d9d895f.png
Through the Graph API, I receive updates from my page as follows: These two photos (specifically, the bottom right and left) in the output look like this: JSON response fragment
$posts = $facebook->api('/me/feed');
/me/feed

{
      "id": "1221396192_4106467539634", 
      "from": {
        "name": "Dmitry Serzhenko", 
        "id": "1221396192"
      }, 
      "story": "Dmitry Serzhenko added 2 new photos to the album Path Photos.", 
      "story_tags": {
        "0": [
          {
            "id": 1221396192, 
            "name": "Dmitry Serzhenko", 
            "offset": 0, 
            "length": 16, 
            "type": "user"
          }
        ]
      }, 
      "picture": "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash3/560727_4106467379630_1221396192_3882761_1963383678_s.jpg", 
      "link": "https://www.facebook.com/photo.php?fbid=4106467379630&set=a.3926776287465.177956.1221396192&type=1", 
      "name": "Path Photos", 
      "icon": "https://s-static.ak.facebook.com/rsrc.php/v2/yz/r/StEh3RhPvjk.gif", 
      "actions": [
        {
          "name": "Comment", 
          "link": "https://www.facebook.com/1221396192/posts/4106467539634"
        }, 
        {
          "name": "Like", 
          "link": "https://www.facebook.com/1221396192/posts/4106467539634"
        }
      ], 
      "privacy": {
        "description": "Friends", 
        "value": "ALL_FRIENDS"
      }, 
      "type": "photo", 
      "object_id": "4106467379630", 
      "application": {
        "name": "Path", 
        "namespace": "getpath", 
        "id": "125664117508"
      }, 
      "created_time": "2012-05-28T10:41:24+0000", 
      "updated_time": "2012-05-28T10:41:24+0000", 
      "comments": {
        "count": 0
      }
    }

Is it possible to receive these events in the feed one by one, without grouping - in the same form as I see them in the Timeline?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mezomish, 2012-05-30
@Mezomish

Unlikely. What Facebook displays in the Timeline and NewsFeed is strikingly different from what it gives out through the Graph API, and the Graph API itself does not shine with an abundance of options and parameters. I am telling you this as a doctor who has been working with the Facebook API at his main job for 2 years :)
Well, except that they have added some options over the past couple of months, which I do not exclude, but still I strongly doubt it.

F
Fifo4ka, 2016-12-30
@Fifo4ka

could you help me? Started learning facebook api. I would like to automate publications from fb to the website. That is, each time a post was added to FB, this post automatically appeared in the blog on the website.
The division of the blog page is as follows: there are 3 div blocks in one row row. There are at least 3 4 such lines. I really count on your help) Thank you)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question