Integration with Facebook and Instagram

Integration with Facebook or Instagram allows your clients to use their Facebook or Instagram photos in customized print products. To integrate Customer's Canvas with Facebook, you should create a Facebook app and paste its ID as a value of the appKey property of the facebook tab in ~\Configuration\clientConfig.json or use the IConfiguration interface to set up this tab for a single product. Integration with Instagram is enabled in the same way. When integration is successful, you can see the additional tabs in the Image Gallery, as follows:

The Facebook and Instagram tabs in the Customer's Canvas gallery.

The Facebook and Instagram sections of this topic describe how you can create apps in Facebook and Instagram respectively. Also, you can find details on how to set up gallery tabs for these social networking services.


  1. Open Facebook Developers in a browser.
  2. Log in to Facebook with your developer account.
  3. Click My Apps, then click Add a New App.

    Adding a New App in Facebook.

  4. Choose the type of application, website.

    Choosing type of the application.

  5. Enter an application name and click Create New Facebook App Id.

    Creating New Facebook App Id.

  6. Choose Photo as the application Category (categories are sorted in alphabetical order) and click Create App ID.

    Choose application Category.

  7. At the end of the page, enter the URL of your website, and click Next.

    Entering Site URL.

  8. Click the Skip to Developer Dashboard link.

    Skip to Developer Dashboard.

  9. Copy the App ID and paste it into clientConfig.json as a value of the appKey property of the facebook tab.

    App ID in Facebook.

  10. Any Facebook app should go through review before it is made available to Facebook users. Before submitting your app to be reviewed, you need to provide the necessary information about the app. Go to App Details and fill out the following fields:

    App Details in Facebook.

  11. Choose your Primary Language and enter the Long Description of your app. The long description is the explanation of what your app does and why you need the functionality that you are sending through to review.

    Choosing Primary Language and entering the Long Description.

  12. Enter an accessible website URL that hosts your privacy policy.

    Entering Privacy Policy URL.

  13. Upload your app logo, a 1024 x 1024 high-resolution image.

    Uploading logo.

  14. At the end of the page, click the Save Changes button.

    Saving changes.

  15. Your app needs to access users photos. For this, you need to get the user_photos permission.
  16. Go to Status & Review and click Start a Submission.

    Go to Status and Review.

  17. Check user_photos and click Add 1 item.

    Add user_photos permission.

  18. Click Add Notes.

    Click Add Notes.

  19. Select the product personalization option, turn on the Web platform, add detailed instructions for how to test the application, and click Save.

    user_photos notes.

  20. Upload the required screenshots.

    Required screenshots.

  21. Fill in the Facebook Login Integration field.

    Facebook Login Integration.

  22. Log in to Facebook through Customer's Canvas.

    Log in to Facebook from Customer's Canvas.

  23. Confirm that you have tested your app and click Submit for Review.

    Submit your Facebook app for review.

  24. Enter and verify your phone number, then click Confirm.

    Verify your phone number.

  25. Note

    For more information about Facebook reviewing apps, please, see Facebook Review Guidelines.


  1. Open Instagram for Developers in a browser.
  2. Log in to Instagram with your developer account.
  3. Click Register Your Application.

    Instagram Register Application.

  4. If you have not signed up as a developer, you will be asked to fill out the following form. After the form is filled in, click Sign Up.

    Developer Signup.

  5. Click Manage Clients.

    Click Manage Clients in Instagram.

  6. Click Register a New Client.

    Register Client.

  7. Fill out the form and click Register.
  8. The Redirect URI is formed by adding Resources/SPEditor/Pages/SocialNetworkRedirect.html to the domain name where you get Customer's Canvas deployed. For example, if your IFrame API script has the following URL:
    then your Redirect URI is
    If you use the hosted version of Customer's Canvas, then your Redirect URI is as follows:
    where xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx is the unique identifier of your Customer's Canvas instance.
  9. Uncheck Disable implicit OAuth.
  10. Fill the form and click Register.

  11. After the application is registered successfully, copy the Client ID to the clientConfig.json file as a value of the appKey property of the instagram tab.

To configure the Gallery:

  1. Open the ~\Configuration\clientConfig.json file and find the definition of tabs in the GalleryDialog object. This tabs array defines all tabs, which Gallery contains.
  2. Set the Facebook App ID and Instagram Client ID to the appKey properties of the facebook and instagram tabs. The definition may look as follows:
      "widgets": {
        "GalleryDialog": {
          "defaultTabName": "Public files",
          // The array of gallery tabs
          "tabs": [
              "name": "User files",
              "type": "user",
              "translationKey": "GalleryDialog.TAB_USER",
              "canEdit": true,
              "canUpload": true
              "name": "Public files",
              "type": "public",
              "subFolderName": "",
              "translationKey": "GalleryDialog.TAB_PUBLIC",
              "canEdit": false
              "name": "Facebook",
              "type": "facebook",
              "canEdit": true,
              // The Facebook App ID
              "appKey": "123456789012345"
              "name": "Instagram",
              "type": "instagram",
              "canEdit": true,
              // The Instagram Client ID 
              "appKey": "123456789012345"

See Also