How To Get A Historical “Facebook Page Loves” Data Via a Graph API or FQL

I wonder if anyone knows how to get historical data for any Facebook page.

For example, the number of fans for a RedBull fan page on a specific day in the past or during a certain period that ends today, so that I can show the development of any page fan for a certain period.

I tried this using the charting API and FQL (insights), but no luck.

https://graph.facebook.com/ {USERNAME} / insights? fields = likes & period ('week') & end_time_date ('2011-06- 26') → empty result

Pulling data through FQL also does not return results, plus it seems that without read_insights permission nothing is possible for page data

I need this to be available only with a universal user access token. In any case, this data is publicly available. The result should be something like this: http://www.socialbakers.com/facebook-pages/australia/

+6
source share
2 answers

Without permission to understand, I recommend that you write something to perform a nightly request on the page graph and record the necessary statistics. If the page is publicly available, most of the information shown on this site is available.

You can also clear information from http://pagedata.appdata.com if the page is already specified ...

+1
source
https://graph.facebook.com/{{pagename}}/insights/page_views?access_token={{access_token_key}}&since=1420070400&until=1421625600 

Since up to in the above code, unix time is required . add the necessary information to {{}}, and this code should work.

+2
source

Source: https://habr.com/ru/post/909143/


All Articles