Facebook Data Point is used to configure connectivity to Facebook database based on access token authorization.

To work with Facebook Data Point, follow below steps:

Step I: Create a New Data Point

Step II: Provide connection details

1. To connect to Facebook database following details need to be provided in the Properties tab.

Facebook uses the OAuth authentication standard. To authenticate requests, you will need to obtain the OAuthClientId, OAuthClientSecret, and OAuthCallbackURL by registering an app with Facebook.

  • Access Token: Access Token will be automatically populated once we refresh the datapoint after establishing connection or after doing Test Connection.
  • Batch Size: Specify the number of batches to be processed in memory and loaded at a time. If the value specified is zero then, all batches are extracted at once.
  • Time Out: Specify the time out duration in minutes. By default, it is set to 0 which means no specified time out duration.
  • Scope: Specify the privileges required for the user to access the application. 
  • OAuth Client ID: Specify the App id of the application registered with facebook. To access the facebook api, login to https://developers.facebook.com/apps/ and create a new application. 
  • OAuth Client Secret: Specify the App secret id of the application registered with facebook. To create the facebook api, login to https://developers.facebook.com/apps/ and create a new application. 
  • CallbackURL: Specify the Domain name specified as redirect URL in the application.
  • Batch Size: Specify the number of batches to be processed in memory and loaded at a time. If the value specified is zero, then all batches are extracted at once.
  • Time Out: Specify the time out duration in minutes. By default, it is set to 0 which means no specified time out duration.
  • Scope: Specify the privileges required for the user to access the application. 
  • Jdbc Options: Specify the options that should be used along with JDBC URL to connect to Facebook. For example, following details are provided in JDBC Options to connect to Facebook: user=diyotta, password=******, db=TEST_DB.

  • Mandatory field names are suffixed with *. To establish the connection, provide all the mandatory property field values.
  • Upon enabling Get Access Token check box, the canvas displays OAuth Client ID, OAuth Client Secret, and Callback URL fields.


2. Assign Agent: To assign or change the associated agent click Change. The Change Agent window appears and displays the list of available Agents. From the list, select the required Agent Name.

Note: To search for a specific agent, enter the keyword in the search bar, and the window displays the search result list. Select the required agent and click Ok.

  • If Default agent is assigned to the Project then automatically, the Default agent will be associated with the new Data point created.
  • If Default agent is not assigned to the Project then, no agent will be assigned automatically and appropriate agent needs to be assigned to the data point.
  • When connecting to the Agent server then, the agent installation user should have appropriate privilege to access the path where file will be placed.
  • When connecting to the remote server then, the firewall needs to be opened from the Agent server to it and user specified to connect should have appropriate privilege to access the path where file will be placed.

Step III: Test the data point connection

  • To validate that the data point is able to connect to the Facebook data point database using the details provided, refer Test Data Point Connection.

Step IV: Save the data point

Note:

Step V: Modify the configured Extract properties

When moving data from one system to another, the data is extracted from the source system, moved over the network and loaded into the target system. The SQLs and commands generated during execution of the jobs to extract the data are generated based on the properties defined for these. The properties associated with the extraction of data should depend on the format, performance and variety of the data being moved. These properties vary based on the environment and the type of the system. Diyotta comes with default properties that covers most of the known scenarios.

To modify these properties, refer Editing Extract Properties in Facebook Data Point.

  • The default values for extract properties can be configured in the Admin module and these properties reflect in the Studio module.
  • The extract properties set in data point are by default used in the source and target instance of the data flow and the job flows.
  • It is a good practice to set the extract properties as per the company standards in the data point.
  • However, if needed any specific property can be overridden in the data flow or job flow.