3

Using Python:

from facepy import GraphAPI  
key = 'My Access_Token'
a = GraphAPI(key)
response = a.get('Page_ID/posts')
print response

If I run this code, It shows me data in JSON format! And Limited Data. I want to get Years of feeds from my page.

In response I get Next tag URL: If I put this URL in Browser I can access more data. In one request we can fetch 200 feeds at a time.

How can I get data in bulk? I want to collect data of 5 years from public page!

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Shiv Shankar
  • 1,007
  • 2
  • 8
  • 13

1 Answers1

3

Facebook's GraphAPI uses paging for API responses: If you query v2.5/{page-id}/posts then the result will provide you with a data array and beneath this there is the paging section. You get the "previous" and "next" query string you just have to call again and again. API won't allow you more than 100 results per "page".

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Hupfauer
  • 591
  • 1
  • 4
  • 15
  • 2
    @ShivShankar You are welcome. If my answer resolved your problem I would appreciate if you mark it answer to the question, so that others with the same problem will find it. – Hupfauer Jan 21 '16 at 06:58