Question

How do pull Facebook Graph API data?

  • 27 February 2024
  • 5 replies
  • 61 views

I want to get the engagement data from a facebook brand page that I manage and store them on a mysql database.Can someone help me how to do this? The actions that I can see available for facebook are mostly for creating and editing content. I cant find anything on pulling the data from fb graph api.

 

thanks


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Userlevel 7
Badge +6

Hi @then,

Welcome to the Community! 🎉

I’m not really familiar with Facebook Graph API, but you might want to explore using Webhooks. You can learn more about Webhooks here: https://help.zapier.com/hc/en-us/articles/8496083355661-How-to-Get-Started-with-Webhooks-by-Zapier

Please note that, Webhooks by Zapier is considered an advanced feature, so our support for it may be more limited. Not because we don't want to help, but because APIs can be so different and each request can be so unique. This makes it hard for us to know why the request may be receiving errors or not working as expected. 

Hopefully, this points you to the right direction.

So this means that there is no built-in connector to access the engagement data on my facebookl brand page… correct?

 

I thought that facebook is a pretty common data source for the marketing industry.

Userlevel 7
Badge +6

Hi @then,

We integrate with Facebook apps, but I’m not entirely sure if these apps are what you’re looking for.

Here are the Facebook apps:

Hopefully, this helps!

What I am looking is getting the data from my facebook pages… the number of likes, the number of comments, the reach, the mentions etc. The integrations I saw here have nothing on getting the data… what they do are mostly posting content, posting ads, replying, etc.

I want the data from my pages and save it on my database… and from that database my reporting platform will generates my reports.

Userlevel 7
Badge +6

Hi @then,

Thanks for the clarification.

Unfortunately, the functionality you’re hoping for the current Facebook integration with Zapier is not possible at the moment. However, you can explore Facebook’s API and use Webhooks by Zapier to achieve your desired workflow.

Here’s an example of the API from Facebook that returns the number of likes of your Facebook Page: https://developers.facebook.com/docs/graph-api/reference/v19.0/object/likes

If you’d like help setting up Webhooks by Zapier. I’d recommend reaching out to one of our certified Zapier Experts here: https://zapier.com/experts

Hopefully, this helps!