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:
-
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.
-
First of all register an application at http://instagram.com/developer/
-
On the registration form enter http://yourwebsite.com/instagram/redirect.php as redirect URI for "OAuth redirect_uri" field.
-
Please note that redirect uri should point to http://yourwebsite.com/instagram/redirect.php otherwise this application is not going to work.
-
After creating the application you will get "CLIENT ID", "CLIENT SECRET" and "REDIRECT URI".
-
Copy those values and open config.php
-
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.
-
Hit index.php