How to Integrate Instagram API into Website

Instagram with its unparalleled popularity has become an important member of social networks community and felt as indistinguishable entity to integrate into a website. Instagram can be easily integrated into a website using the Instagram API.

Let us go through the required steps for Instagram integration.

  • Open and login with your Instagram username and password.
  • Scroll down to the bottom of the page and click API link in the footer. You will be directed to Instagram developer page.
  • On the top menu bar, click the Manage Clients link.
  • On redirected page, click on Register a New Client button to create your Instagram application and fill the required fields in the form
  • Put a valid value like in redirect URL. This is the path to the file where the code for api integration is saved. ( Below you will find the insta_api.php )

instagram api integration

  • For testing purpose you can fill the same url value in website URL and Privacy Policy URL .
  • Finally click Register button to submit the form. On next page you will get Client ID and Client Secret to use the api.

Please note that every new app will be functioning in sand box mode first by default, so with limited Instagram features. To access all features of Instagram you need to switch your app into LIVE mode by following proper request procedure to get live. You will need to first get an access token to call the api methods.

Here is the full code to first get the access token and then to get user basic data as a test for Instagram integration.


Now run the redirect uri (given at the time of registering Instagram application). You will get a page with button Login With Instagram. Login with Instagram username and password and Authorize the application to get user data.

Leave a Comment