Setting Up Facebook Ads for OAuth

Step 1: Create a Facebook App

  1. Sign in to Meta for Developers: Visit the Meta for Developers and follow the instructions provided in the Facebook Documentation to create a Facebook app.
  2. Create New App: Click on “My Apps” > “Create App”.

  1. Enter App Details: Choose the appropriate platform (e.g., Web) and provide a name for your app (e.g., “valmi.io”).

  1. Create App: Click “Create App” to finish.

Step 2: Configure OAuth & Permissions

  1. Auth Settings: Navigate to “Auth” from the left-hand sidebar in your app dashboard.
  2. Redirect URLs: Add the redirect URL where Facebook will send users after authorization. Use the following format: https://host/api/oauth2/redirect/facebook-ads.
  3. Scopes: Add the required OAuth scopes for your integration:
    • public_profile
    • ads_management
    • email
  4. Save Changes: Click “Save” to save your OAuth settings.

Step 3: Add OAuth Redirect URI

  1. Facebook Login: Navigate to “Products” > “Facebook Login” from the left-hand sidebar.
  2. Settings: Click on “Settings” under Facebook Login.
  3. Valid OAuth Redirect URIs: Add the redirect URI where Facebook will send users after authorization. Use the following format: https://your-host/api/oauth2/redirect/facebook-ads.
  4. Save Changes: Click “Save Changes” to save your OAuth settings.

Step 4: Obtain App ID and App Secret

  1. App Dashboard: Navigate back to your app dashboard.
  2. App ID and App Secret: Your App ID and App Secret will be displayed on this page. Copy them for use in valmi.io.

Step 5: Configure Facebook Ads OAuth in valmi.io

  1. Access Configuration: In your application, navigate to the sidebar and select “CONFIGURE APPS”.

  1. Select Facebook Ads OAuth Application: Find the Facebook Ads OAuth application from the list of available applications and select it.

  1. Enter Credentials: Provide the Facebook App ID and App Secret that you obtained earlier into the input fields.

  1. Save Configuration: Click “Save” or “Update” to save the configuration.