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!
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".
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.