Reputation: 43
I'm looking for a way of programmatically exporting Facebook insights data for my pages, in a way that I can automate it. Specifically, I'd like to create a scheduled task that runs daily, and that can save a CSV or Excel file of a page's insights data using a Facebook API. I would then have an ETL job that puts that data into a database.
I checked out the oData service for Excel, which appears to be broken. Does anyone know of a way to programmatically automate the export of insights data for Facebook pages?
Upvotes: 4
Views: 18664
Reputation: 61
There are a number of ways that you could do this. I would suggest your choice depends on two factors:
I can't answer 1 for you, but in your case you aren't moving that much data (in relative terms). I will still share three options of many.
HARD CODE IT
This would require a script that accesses Facebook's GraphAPI AND a computer/server to process that request automatically. I primarily use AWS and would suggest that you could launch an EC2 and have it scheduled to launch your script at X times. I haven't used AWS Pipeline, but I do know that it is designed in a way that you can have it run a script automatically as well... supposedly with a little less server know-how
USE THIRD PARTY ADD-ON
There are a lot of people who have similar data needs. It has led to a number of easy-to-use tools. I use Supermetrics Free to run occasional audits and make sure that our tools are running properly. Supermetrics is fast and has a really easy interface to access Facebooks API's and several others. I believe that you can also schedule refreshes and updates with it.
USE THIRD PARTY FULL-SERVICE ETL There are also several services or freelancers that can set this up for you at little to no work on your own. Depending on where you want the data. Stitch is a service I have worked with on FB-ads. There might be better services, but it has fulfilled our needs for now.
You would probably be best served by using a third-party add-on like Supermetrics. It's fast and easy to use. The other methods might be more worth looking into if you had a lot more data to move, or needed it to be refreshed more often than daily.
Upvotes: 0
Reputation: 629
A new tool is available: the Analytics Edge add-ins now have a Facebook connector that makes downloads a snap. http://www.analyticsedge.com/facebook-connector/
Upvotes: 0
Reputation: 1062
Check out http://megalytic.com. This is a service that exports FB Insights (along with Google Analytics, Twitter, and some others) to Excel.
Upvotes: 0
Reputation: 1678
It's possible and not too complicated once you know how to access the insights.
Here is how I proceed:
I have the code already made (and published as a temporarily free tool on www.social-insights.net), so exporting to excel would be quite fast and easy.
Let me know if I can help you with that. It can be done before the week-end.
Upvotes: 4
Reputation: 52093
You would need to write something that uses the Insights part of the Facebook Graph API. I haven't seen something already written for this.
Upvotes: 3