Warning: BETA. This connector is a beta version.

Facebook Fan Pages

The Qlik Facebook Fan Pages Connector uses the Facebook Graph API to extract data, such as likes and shares for comments and posts in the page feed, from Facebook Pages and load it into your Qlik Sense app.

Note: The built-in web connectors are only available on Qlik Sense Cloud with a Cloud Business subscription.

Ways to access your data

To access Facebook Pages data, you need to authenticate the connector with your Facebook account credentials. After you create a connection and select Facebook Fan Pages as your data source, you are redirected to a Facebook login page to retrieve your authentication token.

Creating a connection and selecting data

Loading data from tables

After you authenticate the connector with your account credentials, use the tables to fetch your data. Some tables are preconfigured to access a specific set of data while others let you create custom queries. The table below outlines some of the use cases for some of the tables that are available.

Table Description
Feed Use this table to fetch the feed of posts (including status updates) and links published by this page, or by others on this page. You are required to enter the page ID.
Page Use this table to fetch information about a single page. You are required to enter the page ID
CommentsForItem Use this table to fetch the comment objects for an object. You are required to enter a post ID.

To select and load data from a table, enter the required table parameters and click Preview data. Required parameters are marked with an asterisk (*). The table fields are displayed under the Data preview tab. You can select fields individually by selecting the box beside each field name. Select Insert script after you have made your selection.

Creating a connection and selecting data

Table parameters

To run most of the tables, you need to enter specific table parameters, usually in the form of an object ID or an object name. You can locate some of the Facebook Fan Pages IDs directly from the Facebook URL.

  • Page ID

    This ID is located at the end of the Facebook page URL. The ID can be an integer or text, in the case of vanity URLs. For example, 'qlik' is the page ID in the following URL: www.facebook.com/qlik.

  • Post ID

    This ID is located at the end of the Facebook post URL. The ID will be an integer. For example, '10203624447732200' is the post ID in the following URL: www.facebook.com/qlik/posts/10203624447732200

Note:

The Facebook Graph API v2.4 and higher no longer accepts singular links. When fetching data from tables that require the post ID, you have to enter a complex field. For example, UserID_PostID or PageID_PostID.

You receive an error message that singular links are deprecated

Working with the Facebook Graph API quota limits

The Facebook Graph API imposes two types of API rate limits:

  • User-based limits.
  • Application-based limits.

The user-based limits apply to each user who is accessing the Facebook Graph API through your app and the application-based limit applies cumulatively for all of your app users. See, You receive an error message that you have reached the API rate limit

Reference - Facebook Graph API documentation

You can refer to the Facebook Graph API documentation to learn more about the requirements and restriction imposed by the Graph API.

Troubleshooting

You are unable to get a list of users who liked your page

Possible cause Possible cause

This is not supported by the Facebook Graph API.

Proposed action Proposed action

There is no solution as this is restricted by the Facebook Graph API.

You receive an error message that you have reached the API rate limit

Possible cause Possible cause

You have exceeded the API limits that are imposed on the Qlik Web Connectors by the Facebook Graph API.

Proposed action Proposed action

To reduce the chance of reaching the API rate limits, develop your app with the following in mind:

  • Extract only the data you need.
  • Extract only time-relevant data and avoid collecting data across a large time range.
  • Reload one Facebook-based application at a time.
  • Ensure that loops in your script that make API calls will not result in infinite loops.

You receive an error message that singular links are deprecated

Possible cause Possible cause

You are using a simple postID field to fetch data for an individual post.

Proposed action Proposed action

Prefex the postID with either the userID or pageID field.

Examples:  

  • userID_postID
  • pageID_postID

Did this information help you?

Can you tell us why it did not help you and how we can improve it?