How do I connect Klipfolio and Facebook?

Set up a connection between Klipfolio and Facebook to show your social media data on a dashboard. Use the steps in this article to learn how to set up that connection.

What is Klipfolio?

Klipfolio integrates with many cloud services and tools to create meaningful data visualizations.

What options do I have for visualizing my Facebook data?

You have the following options for visualizing your data on a dashboard in Klipfolio:

Use the Klip Gallery Use the Dashboard Gallery Use the Connector Gallery
The Klip Gallery enables you to track your key metrics using pre-built Klips for some of the most popular services and data sources. The Dashboard Gallery includes pre-built dashboards, like the Facebook Post Engagement Dashboard. The Connector Gallery helps you get your data fast with pre-built queries. Use this article as a guide to build your own Facebook data source.

Important! Klipfolio only integrates with public Facebook pages (for example, businesses, brands and organizations) - not personal profiles.

How do I authenticate with Facebook?

Whether you connect using the Dashboard Gallery, Klip Gallery or Connector Gallery, the first thing you will be asked to do is authenticate your identity with Facebook.

  1. If you added Facebook Klip(s) to your dashboard from the Dashboard Gallery or Klip Gallery, click Connect Your Account on your dashboard.
    Or, if you are creating a Facebook data source using the Connector Gallery, select Facebook.
  2. Either log in to Facebook, or select an account from the drop-down list. Your token looks like this: George@Facebook.

How do I find my Facebook Page ID and use it in Klipfolio? (Connector Gallery only)

If you are creating a Facebook data source using the Connector Gallery, you will need your Facebook company Page ID.

To find your ID,

  1. Open Facebook in a new window.
  2. Navigate to your Facebook company page.
  3. On your Facebook company page, select About.
  4. Under Page ID, copy your ID number.

To use your ID in Klipfolio,

  1. Back in Klipfolio, in the Connector Gallery, select Facebook from the list.
  2. On the Pick a Data Request page, select any Facebook data request.
  3. On the New Data Source page, take a look at the Query URL text box.
  4. Erase <yourPageId> and replace with your actual Facebook Page ID (you found this in the steps above).
  5. When you're done, click Submit. You can now use your data to build data visualizations in the Klip Editor.

Advanced: How do I use APIs to build a Facebook data source?

Klipfolio connects to hundreds of services in the cloud that have a REST API. If you take the time to learn how to get data into Klipfolio using APIs, your possibilities are endless. Here's a quick and simple overview video on APIs and Klipfolio:

  Klipfolio API's 101

If you need assistance using APIs, enlist a data analyst or developer to help you.

If you want to edit a Facebook data source that you already created, check out How to edit or reconfigure a data source, and get step-by-step instructions.

Facebook quick reference table

API Documentation: Facebook Graph API Documentation
Sample Query: https://graph.facebook.com/v2.8/1234567890/insights/page_impressions_by_locale_unique,page_impressions_by_age_gender_unique?period=days_28

Note: In the query, replace the version number with the latest version of the Facebook API.

How do I build a Facebook query from scratch?

The Facebook Insights metrics provide very useful data for building Klips. Browse their endpoints in their Insights API docs and append the one(s) you're interested in to your query. Here's how:

After browsing insights endpoints, copy one(s) that interest you.

For example: page_impressions and page_impressions_unique, for the past 28 days (days_28).

Note: to make the date range a rolling window, change it to since={date.last30Days}&until={date.today}

Let's use those endpoints to create a query in Klipfolio.

Enter commas between multiple endpoints, and enter a question mark before the date parameter.

Once you are happy with the query, click Submit.

Take a look at the data and see if it interests you. Either modify your query or scroll to the bottom of the page and click Continue.

Save and name your data source, and use it to build a Klip!
With a static date range:
https://graph.facebook.com/v2.8/1234567890/insights/page_impressions,page_impressions_unique?period=days_28

With a rolling window - dynamic date range:
https://graph.facebook.com/v2.8/1234567890/insights/page_impressions,page_impressions_unique?since={date.last30Days}&until={date.today}



Note: In the query, replace the version number with the latest version of the Facebook API.

Related Links