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 :  and click on “Generate Access Token” button
  3. Use the generate access token in the  : 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: 2653