Facebook SDK / Graph Api: retrieve updated time (date set on timeline)

Discussion in 'Facebook API' started by Arone, Jan 3, 2014.

  1. #1
    Hello everyone,
    I am using Facebook PHP SDK to display my fan page feeds on my website with the date using this :
    echo "<p>". date("m-d-Y",(strtotime($post['created_time'])))."</p>";
    My problem is that "created_time" shows the creation date, but I want to show the date displayed on my timeline : for some post I have used the function "change date" (on the top right corner) so the post will display (and also go on the timeline to) -let say- December 1st even though I have created the post January 2nd.

    I found that the data I want to retrieve (date displayed on timeline after I use the function "change date") is under the attribut data-utime (from facebook HTML). I try this in my code but it still not working. There must be an array in graph API storing this data but which one !? Any idea?
    Thanks a lot for your help!
     
    Arone, Jan 3, 2014 IP