Data Connection to Facebook

  • Last update:May 21, 2024
  • Overview

    Version

    FineReport Version
    Functional Change

    11.0

    /

    Application Scenario

    This document introduces how to connect to Facebook with CData driver in FineReport.

    Preparation

    Version and Driver

    Driver Download

    According to your system environment (Windows//Linux/Mac), choose and download the appropriate installation package on CData official website.

    Driver Installation

    Install the driver to the local device, and the directory structure after installation is shown in the following figure.

    iconNote:
    The readme.htm file contains instructions for using the driver and can be used for reference.

    Driver Login

    iconNote:
    CData driver provides a one-month trial period. Continued use afterward requires payment.

    1. The document takes the trial version as an example, and a login account is registered. The following figure shows the generated lib directory.

    2. Upload the driver to FineReport.

    Versions Before 11.0.5

    Copy and paste files in the lib directory to the lib folder D:\FineReport_11.0\webapps\webroot\WEB-INF\lib in the FineReport project, as shown in the following figure.

    Versions After 11.0.5

    Refer to section "Creating a Data Connection" in Driver Management to upload the driver, and manually place the .lic file in D:\FineReport_11.0\webapps\webroot\WEB-INF\lib.

    Getting a Facebook User ID

    Connection Procedure

    Connection Test with CData Test Connection Tools

    1. In the driver installation directory, directly execute java -jar cdata.jdbc.facebookads.jar to open the test connection window provided by CData and enter the relevant information.

    Configuration Item

    Value

    Initiate OAuth

    GETANDREFRESH

    Account ID

    ID obtained in section "Getting a Facebook User ID".

     

    2. After successfully testing the connection, copy and paste the link information in Connection String, for example, jdbc:facebookads:AccountId=user ID; InitiateOAuth=GETANDREFRESH.

    Connection Test with FineReport

    1. Open the designer and define a data connection to Others.

    2. Modify the driver, copy and paste cdata.jdbc.facebookads.FacebookAdsDriver to Driver.

    3. Enter the URL with the copied link information from step 1, for example, jdbc:facebookads:AccountId=user ID;InitiateOAuth=GETANDREFRESH.

    4. Click Test Connection. After a successful connection, click OK to proceed with normal data fetching operations.

    Adding Database Tables to FineReport

    For details, seeDataset.

    Attachment List


    Theme: Data Preparation
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    9s后關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy