Instagram API integration with PHP: Access an Instagram user account with its API

Recommend this page to a friend!

Picture of Yasir Siddiqui
Name: Yasir Siddiqui is available for providing paid consulting. Contact Yasir Siddiqui .
Classes: 14 packages by
Country: Pakistan Pakistan
Age: 36
All time rank: 3293 in Pakistan Pakistan
Week rank: 136 3 in Pakistan Pakistan
Innovation award
Innovation award
Nominee: 8x

Winner: 1x

  Detailed description   Download .zip .tar.gz   Install with Composer  
This class can access an Instagram user accounts with its API.

It can send HTTP requests to the Instagram API Web servers using the OAuth protocol to access the account of an user with his permission.

The class retrieves a token that it can use to send subsequent API requests to get the user feed, the user publications, get his followers and who he follows, and his most popular photos.



This sample project demonstrates the integration of instagram apis with PHP. It user oAuth authentication and can fetch verity of data.

It can show user?s Feed (user wall), User comments, Uploaded media by a user, Show user?s uploaded photos on Google map with Pins and information windows showing photo, List of users who are following current user, List of users followed by current user, Most popular photos on instagram with comments and users.

Follow the following instructions:

1) First Of all Upload all the files to a publically access able web server so that instagram can redirect user to your server after authentication.

2) Register an application at

3) On the registration form enter as redirect URI for "OAuth redirect_uri" field.

4) Please note that redirect uri should point to otherwise this application is not going to work.

5) After creating the application you will get "CLIENT ID", "CLIENT SECRET" and "REDIRECT URI".

6) Copy those values and open config.php

7) Replace these values in appconfig array. Please note that redirect_url in appconfig should be same as "OAuth redirect_uri" value you entered while registering the App.

8) Hit index.php

  Classes of Yasir Siddiqui  >  Instagram API integration with PHP  >  Download .zip .tar.gz  >  Support forum (3)  >  Blog  >  Latest changes  
Name: Instagram API integration with PHP
Base name: instagram
Description: Access an Instagram user account with its API
Version: 1.5
PHP version: 5.0
Licenses: BSD License
GNU General Public License (GPL)
All time users: 2302 users
All time rank: 1685
Week users: 2 users
Week rank: 124
  Groups   Screenshots   User ratings   Applications   Files  

PHP 5 Classes using PHP 5 specific features View top rated classes
Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Social Networking Tools and components to integrate with social networking sites View top rated classes

File Role Description
feed.PNG Screen Screen Shot
map.PNG Screen Screen shot

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.

If you know an application of this package, send a message to the author to add a link here.

File Role Description
images (8 files)
Class.Instagram.php Class Class File
config.php Conf. Configuration script
followers.php Example Example script
following.php Example Example script
footer.php Data Example script
header.php Aux. Example script
index.php Example Example script
Instructions.txt Doc. Documentation
leftmenu.php Example Example script
maps.css Data maps css file
myfeed.php Example Example script
mypublications.php Example Example script
popular.php Example Example script
publicationsmap.php Example Example script Doc. Auxiliary data
redirect.php Example Example script
style.css Data Auxiliary data

  Files  /  images  
File Role Description
   background.png Data Auxiliary data
   leftmenu_bottom.png Icon Icon image
   leftmenu_link.png Icon Icon image
   leftmenu_top.png Icon Icon image
   link_background.png Icon Icon image
   main_back.png Data Auxiliary data
   main_bottom.png Data Auxiliary data
   main_top.png Data Auxiliary data

Install with Composer - Download all files: instagram.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

For more information send a message to info at phpclasses dot org.