How to Setup a Facebook API and Identity for Stitchz

Stitchz allows a Facebook Page Manager to share and manage posts on their Page. This means that in order to share on Facebook via Stitchz you must request a developer API key/secret and the appropriate permissions (scope). Follow the steps below to request an API key/secret and submit for review.

  1. Login Facebook with the account you plan to share posts.
  2. Go to the developers portal, click "My Apps", then click Create App. You'll be asked "What do you want your app to do?", select "Other" at the bottom, then click Next.

    developer portal app creation choices
    Figure 1

    On the next screen, select "Business" as the app type and then click Next.

    developer portal app creation choices
    Figure 2

    Enter your application name, contact email address, and select your Business Account. If you don’t have a business account yet, you can create one at a later step.

    app creation form with details
    Figure 3

Depending on your account and application type, you must choose between Facebook Login and Facebook Login for Business. Based on your choice, follow the steps in the respective tab below.

  1. Add the Facebook Login product to your new app by clicking on Set Up.
    select a Facebook product to add to your app
    Figure 4

    select a platform where Facebook login will reside
    Figure 5

    complete the product details by entering your site url and answer all questions
    Figure 6

  2. Add the Stitchz OAuth2 Redirect URL (Figure 6) - https://api.stitchz.net/oauth2/authenticated
    add the Stitchz.net OAuth2 callback URL
    Figure 7

  3. Go to Settings > Basic and add the Stitchz.net domain to your App Domains (Figure 7).
    add the stitchz.net domain to the new Facebook Apps App Domain
    Figure 8

  4. Go to App Review > Permissions and Features (Figure 9). Scroll through the list of available permissions and select Request Advanced Access on the following permissions:
    • pages_show_list
    • pages_manage_posts
    • pages_read_engagement
    • Page Public Metadata Access
    app Review Permissions and Features selection... add the proper permissions as listed here
    Figure 9

  5. Go to App Review > Requests and submit app for review (Figure 10).
    submit your new app for review by Facebook
    Figure 10

  6. The App approval process can take up to 5 business days to complete. Work closely with the Facebook review team to complete the review as quickly as possible.
  7. After your app has been approved, copy the new Facebook App ID and App Secret from your Facebook App Dashboard into your Stitchz application. Go to Apps > Settings, then click the shield in the Identity Providers section to add a new provider (Figure 11). In the form that appears, select Facebook and paste your App Id and App Secret, followed by ticking the appropriate scopes/permissions in the Provider Scope section, then click Save.
    complete the provider form with the app key and secret
    Figure 11

  8. From the application Settings page, click the social group name. Next, click the green Add Identity button to add your Facebook Identity (the account responsible for managing the Page). On the modal window click Facebook to begin the process to add your Facebook Identity to Stitchz (Figure 12). Follow the prompts on Facebook's site to complete the request (Figure 13-15).
    add Facebook account as an Identity to share posts with
    Figure 12

    the first step of the Facebook IdP process
    Figure 13

    select a page to grant permissions to share posts with
    Figure 14

    grant specific permissions to use with Stitchz
    Figure 15

  9. After the Identity has been added click the Identity's Pages button to load the list of available pages the Identity has management access to (Figure 16). Click Add Identity to add the Page.
    search and select the Facebook Page to add to Stitchz
    Figure 16

  10. Setup is complete, you can begin sharing posts on the Facebook Page from Stitchz.
  1. Add the Facebook Login for Business product to your new app by clicking on Set Up.
  2. Add the Stitchz OAuth2 Redirect URL (Figure 6) - https://api.stitchz.net/oauth2/authenticated
  3. Go to App Settings > Basic and add the Stitchz.net domain to your App Domains (Figure 7).
    add the stitchz.net domain to the new Facebook Apps App Domain
    Figure 8

  4. Under Facebook Login for Business, go to "Configurations".
  5. Click "Create Configuration"

    add the stitchz.net domain to the new Facebook Apps App Domain
    Figure 8

  6. Enter a name of your configuration.

    add the stitchz.net domain to the new Facebook Apps App Domain
    Figure 8

  7. Select the type of access token required for your application. Currently, Stitchz.net supports User Access Tokens (UATs). UATs are associated with your app user's personal account and is a short-lived token for online activities.

    add the stitchz.net domain to the new Facebook Apps App Domain
    Figure 8

  8. Finally, choose the proper permissions. The following 7 minimum permissions are required:
    • business_management
    • email
    • pages_manage_engagement
    • pages_manage_posts
    • pages_read_engagement
    • pages_read_user_content
    • pages_show_list


    add the stitchz.net domain to the new Facebook Apps App Domain
    Figure 8

  9. Click "Create"
  10. Copy the "Configuration ID" for use later.
  11. The final configuration should look similar to the below screenshot.

    add the stitchz.net domain to the new Facebook Apps App Domain
    Figure 8