> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://staging.chrisp.chat/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Facebook/Instagram Photos in the Images module

## Create App

First of all you need to create a Facebook app or select one from your existing apps. Please follow step 1 and 2 in this [guide](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started?locale=en_US).

In Step 2 you need to enter a "Valid OAuth Redirect URIs". You can find that URI in the FPD settings (General > Modules > Instagram Redirect URI).

---

## Enter the APP ID and Secret

After setting up the Instagram App you need to copy APP ID and Secret.

### Using Wordpress

Paste these values (ID & Secret) in General > Modules settings.

### Using jQuery

The [redirect URI](https://jquerydoc.fancyproductdesigner.com/classes/Options.defaults.html#property_instagramRedirectUri) and [App ID](https://jquerydoc.fancyproductdesigner.com/classes/Options.defaults.html#property_instagramClientId) need to be set in the [plugin options](https://jquerydoc.fancyproductdesigner.com/classes/Options.defaults.html#property_instagramClientId) .

The redirect URI is the URI to the html/instagram-auth.html, e.g. `` `[http://yourdomain.com/html/instagram-auth.html](http://yourdomain.com/html/instagram-auth.html)` ``

#### App Sceret

You also need to set the URI to a server-side script that receives the token. You can set the URI in the [instagramTokenUri option](https://jquerydoc.fancyproductdesigner.com/classes/Options.defaults.html#property_instagramTokenUri). We created a PHP script (php/instagram-token.php) that will do this for you. Open this PHP file and enter the Instagram App Secret at the top of the file.

## Test Instagram App

To test your Instagram app, please follow Step 3 in this [guide](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started?locale=en_US).

## Start App Review

In order to use the Instagram app for your customers, you have to start a submission with the permissions "****instagram_graph_user_profile****" and "****instagram_graph_user_media****". All information about the App Review can be found [here](https://developers.facebook.com/docs/apps/review/).

Add these permissions to the submission in the "App Review for Instagram Basic Display" section.

After that you need to enter some details for the review. Everything is explained in the modal.

At the end click "Submit For Review".

Important Notice: Our team can not help with the app review process and is not responsible if Facebook is not granting these required permissions. Therefore you need to read the [App Review guide](https://developers.facebook.com/docs/apps/review/) in order to get any information why your submission is denied. If Facebook is not giving you the permissions for your App, there is absolutely nothing we can do about that.