1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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!
    SEMrush
     
    Arone, Jan 3, 2014 IP
    SEMrush