Authorizing Facebook APIs in Astera

Facebook uses HTTP-based APIs that can be utilized to extract or load data, to and from Facebook. You can configure Facebook APIs for use in Astera using the ‘Custom API’ source in the REST API Browser (Beta).

To authorize a Facebook API in Astera, follow the steps below.

  1. Click here and log in.

Note: If you have not created an account yet, you need to create one first after signing in.

  1. Enter your Facebook account credentials to log in.

  1. Go to My Apps > Create App to create an application.

  1. Provide the Display Name for your application, and click Create App ID.

Once your application is created, it will show under the My Apps tab.

  1. Click Centerprise to open the dashboard.

  1. Click on Settings > Basic to get the relevant credentials.

  1. Here you can see the App ID and App Secret. Save this information to use later for authentication.

  1. To use Bearer Token authentication, go to Tools > Graph API Explorer.

  2. Click Generate Access Token and copy the token.

  1. To access and try out different APIs, go to Tools > Graph API Explorer.

  1. Select anything from the drop-down list.

  1. Click Submit, to see the results.

  1. Import the API in Astera using the Import API option in the REST API Browser (Beta). Select API Import Source as Custom API by providing Name and Base Url.

  1. Now, you need to authenticate the Facebook APIs to use them in your dataflow. Without authentication, you will get an error. To authenticate an API, go to the Project Explorer panel and double-click on the API’s .sact file under the Shared Connection node.

Facebook’s .sact file will open on the designer. Now, right-click on the shared action file’s header and select Properties. This will open the REST API Connection window, where you can configure the settings to authenticate Facebook’s API.

Facebook uses ‘OAuth 2’ authentication with Grant Type, ‘Authorization Code’.

  • Auth Url: https://www.facebook.com/dialog/oauth

  • Access Token Url: https://graph.facebook.com/oauth/access_token

Provide the ClientID and Client Secret that you had saved earlier, then click on Request token to generate the access token for Facebook.

Note: As you click on Request Token, Facebook’s login window will open where you will have to provide your credentials to generate the access token to access Facebook API.

  1. Save the shared action file after authentication and you are ready to use Facebook APIs in Astera. For more information on how to use a Custom API in Astera, click here.

This concludes authenticating the Facebook APIs in Astera.

Last updated

© Copyright 2023, Astera Software