LinkedIn
Copied!

Table of Contents

Creating a Facebook data set

Version:

Only available versions of this content are shown in the dropdown

You can create a Facebook data set record to track and analyze the text-based content that is posted on the Facebook social media site. By analyzing users' input, you can gain insight that helps you to structure the data in your application to deliver better services to customers and increase your customer base.

Before you create a Facebook data set, register on the Facebook site for developers and create a Facebook application. The application provides the App ID and App secret details that you need to enter in the Facebook data set.

For example, by tracking and analyzing posts on the Facebook page of your organization, you can quickly detect and respond to any issues that your customers might have.

Use the Facebook data set to filter Facebook posts according to the keywords that you specify. First, create a Facebook data to connect with the Facebook API. Next, reference the data set from a data flow and use the Text Analyzer rule to analyze the text-based content of Facebook posts.

Do not reference a Facebook data set from multiple data flows because stopping one data flow stop the Facebook data set in all other data flows.
  1. In Dev Studio, click Create Data Model Data Set .

  2. Enter the data set label and identifier.

  3. From the Type list, select Facebook.

  4. Provide the ruleset, Applies to class, and ruleset version of the data set.

    The Applies-to class for Facebook data sets must always be Data-Social-Facebook.
  5. Click Create and open.

  6. On the Facebook tab, in the Access details section enter the following information from your Facebook application:

    • App ID
    • App secret
    • Facebook Page Token
    Every page owner has a page token for the owned page. You must obtain this page token to fetch posts, direct messages, and the promoted posts for the page.
    When you enter a valid Facebook token, the Facebook page URL field is automatically populated with the address of the Facebook page from which you want to extract data for text analysis. By clicking that URL, you open the corresponding Facebook page.
  7. Optional:

    Configure which metadata types to track on the Facebook page. In the Endpoints section, you can select the following metadata types:

    • Posts
    • Direct messages
    • Page timeline and tagged posts
    • Posts that are promoted
    • Comments on posts
  8. In the Search section, enter the time period to retrieve Facebook posts.

    For example, you can retrieve Facebook posts submitted within the last 24 hours. Configure this information if you want to retrieve either historical posts or posts that were not retrieved as a result of a system failure.
  9. In the Track additional Facebook page(s) section, click Add URL, and enter the name of one or more Facebook pages for which you want to analyze text-based content.

    You can analyze only the public posts on these pages.
  10. Optional:

    Enter the names of users whose posts you want to exclude from analysis by clicking Add follower in the Ignore section.

    See the Facebook Graph API documentation for information about limitations when specifying keywords and authors.
  11. Click Save.

  • Customizing the metadata retrieval from Facebook data sets

    You can customize the type of data that is retrieved from Facebook data sets through social media connectors in Pega Platform to get specific content that is required to fulfill your business objectives (for example, user verification information, profile pictures, emoticons, and so on). You customize that content by providing the correct connection details to the Facebook data sets, retrieving the social media metadata, and mapping that metadata to the Pega Platform properties.

  • Accessing the Social Media Metadata landing page

    From the Social Media Metadata landing page you can define the type of metadata that is retrieved from Facebook data sets through social media connectors.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.