Programming

Get photos from Instagram using PHP & CURL

To display your Instagram photos on your site, you shall generate the access token.  To generate the Access token  :

  1. Login on your  Instagram account .
  2. Visit  site :  http://instagram.pixelunion.net/  and click on “Generate Access Token” button
  3. Use the generate access token in the  : https://api.instagram.com/v1/users/self/?access_token=ACCESS-TOKEN to get the  posts of  your Instagram account

You can use the following function to get Instagram photos  or update it as per requirement.

Here, $limit  is the number of photos you would like to display in your website.

 

Hits: 2469

Standard