How to get App ID & App secret for Instagram social login and Instagram Widget ?
To show Instagram posts, you will need:
- A Facebook Developer Account. Instagram is owned by Facebook and now Instragram API is managed by Facebook
- An Instagram Account with media
To display your Instragram posts on your site, you have to create an Instragram application and connect it with the site. Please follow these steps:
- Go to https://developers.facebook.com/, click My Apps, and create a new app. Once you have created the app and are in the App Dashboard, navigate to Settings > Basic, scroll the bottom of page, and click Add Platform.
- Choose Website, add your website’s URL, and save your changes. You can change the platform later if you wish, but for this tutorial, use Website
- Click Products, locate the Instagram product, and click Set Up to add it to your app
- Click Basic Display, scroll to the bottom of the page, then click Create New App
- In the form that appears, fill in:
- Display Name. Enter the name of the Facebook app you just created
- Valid OAuth Redirect URIs. Read below from where you can get it
- Deauthorize Callback URL. Copy here the Valid OAuth Redirect URIs value
- Data Deletion Request Callback URL. Copy here the Valid OAuth Redirect URIs value
- App Review for Instagram Basic Display. Read below when you need to send your app for a review
- To get Valid OAuth Redirect URIs, please return back to your site and go to WP Dashboard › Membership Settings › Social Login Settings > Instagram then check the quick setup steps to find the the line that starts with "Redirect Url:" or here's the link format :
if your website is https://kainelabs.com
The the link format is :
- Once you have finished, copy Instagram App ID and Instagram App Secret
- Go back to WP Dashboard › Membership Settings › Social Login Settings > Instagram page and paste them into App ID and App Secret fields
- Save changes.
To use your Instagram application, it has to be in Live Mode or your Instagram user's account has to be added to it as a test user.
To go Live with your app, you have to submit it for a review. Go back to your Facebook Developer Account, then Instagram > Basic Display and then :
1. if you wanna setup only social login select the option instagram_graph_user_profile :
2. if you wanna setup instagram widget select the option instagram_graph_user_profile and the option instagram_graph_user_media submission option.
Your application doesn't have to be Live to allow you test it. All you need is to add a test user. To do so, please do as follows:
- Go back to your Facebook Developer Account
- Navigate to Roles > Roles and scroll down to the Instagram Testers section. Click Add Instagram Testers and enter your Instagram account’s username and send the invitation.
- Go to your Instagram Account
- Click Edit Profile
- Navigate to Authorized Applications
- Choose Tester Invites and accept the invitation
- Your Instagram account is now eligible to be accessed by your Facebook app while it is in Development Mode
Most of the steps and all images userd in this tutorial are taken from Bimber Documentation Below :