MAY SALE! Use Discount Code "MAY17" to Get 15% Off of your purchase! Offer ends in
Documentation > Advanced

Activating Instagram Widget

Backing Up the theme Settings

49

After Instagram’s policy change on 1st June, 2016, getting user id and access token became harder. Here are steps you will have to take to activating the Optimizer Instagram Widget

Step 1

Go to https://www.instagram.com/developer/clients/manage/

Step 2

Click the “Register a New Client” button.

Step 3

You will be redirected to their Application Form. The form has 2 sections: Details & Security. Fill out the Details Section. Dummy data for demonstration purpose only. Please insert real website address and email address.

 

instragram_client_id

Step 4

Now click the “Security” tab and uncheck the “Disable implicit OAuth:” option

instagram_security_setting

Step 5

Click the “Register” button and you will be redirected to Client management page where your “CLIENT ID” and “CLIENT SECRET” will be shown

instagram_secret

Step 6

Now we will have to get our Access token using the Client Secret. To do that copy this link to your browser address bar:

https://www.instagram.com/oauth/authorize/?client_id=XXX&redirect_uri=YYY&response_type=token&scope=public_content

and replace XXX with your Client ID and replace YYY with your Redirect URI and press enter. You will get your Access Token ID in your address bar:

instagram_access_token

Copy The Access Token ID and Insert it in your Instagram Widget’s  “Instagram Access Token” field.

 

Step 7

Now the last piece of puzzle. We will have to get our Instagram user id. Copy this  url in your address bar:

https://api.instagram.com/v1/users/self/?access_token=XXX

Replace the XXX with your access token that you copied earlier and press enter. Like so :

https://api.instagram.com/v1/users/self/?access_token=351099827.837c042.870e4026405146619269ec39478feb25

 

Your user id will be displayed like this:

Copy the id and paste it in your Instagram Widget’s “Instagram user id number” field. Now save your widget and your Instagram widget should work as it supposed to.