The Facebook Graph API Explorer found something for me

I discovered that I could get data from my Facebook timeline with the elements I want (like the links and pictures included, which the “Download ALL my Facebook” says it is doing but really doesn’t). I used the Graph API Explorer under ny account. It generates a token for me.
When I do a query like so:
/myID/posts?fields=story,link,message,picture,description,permalink_url,created_time&limit=9900
I get back a paginated result , with a “Paging” section at the foot of each page with a “previous” and “next” with the links being
the “previous”:
https://graph.facebook.com/v2.11/myID/ followed by the above posts?fields=field1,field2,etc. and then a
&format=json&since=15…02&access_token=
and then &__previous=1 tacked onto the end

the “next” paging item:
https://graph.facebook.com/v2.11/myID/ followed by the above posts?fields=field1,field2,etc. and then a &format=json&accesstoken=reallylongstring then &until=15…06&_paging_token=enc_anotherReallyLongString

The “since” and “until” parameters were apparently encoded versions of what I had entered in unix format as September 1, 2014 and January 19, 2018 , respectively, in the Graph Explorer interface that gave me a graphical prompt to enter in the date, and then it generated the above numbers of the 10 digit format 15…..06 to represent January 19, 2018

I was wondering if I am close to being able to find a way to download the entire JSON dataset without pagination, which I could then use to import into WordPress as individual posts.

About Theoblogical

I am a Web developer with a background in theology, sociology and communications. I love to read, watch movies, sports, and am looking for authentic church.

2 Replies to “The Facebook Graph API Explorer found something for me”

  1. Theoblogical Post author

    JUst made another breakthrough! I can now pull the comments in that Posts? query with the following:
    /posts?fields=story,link,message,picture,description,permalink_url,created_time,comments{message,comments},sharedposts.limit(500),shares&limit=9900

    another tweak after I noticed that single comments were not returning the name of the commentor:
    /posts?fields=story,link,message,picture,description,permalink_url,created_time,comments{from,message,comments,name},sharedposts.limit(500),shares&limit=9900

Leave a Reply