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 https://www.instagram.com/ 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 http://www.example.com/insta_api.php 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.

insta_app1
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.

Insta_api.php

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.
Thanks

Recommended Posts For You

About Manish Kumar

I am PHP web developer and blogger.

View all posts by Manish Kumar

1 thought on “How to Integrate Instagram API into Website”

  1. mỹ phẩm hera beauty

    Whoah this blog is magnificent i love studying your articles.
    Stay up the good paintings! You already know, many individuals are hunting around for this info, you
    could help them greatly.

Leave a Comment

Your email address will not be published. Required fields are marked *