Instagram

http://instagram.pixelunion.net/
https://elfsight.com/blog/2016/05/how-to-get-instagram-access-token/

http://stackoverflow.com/questions/37593025/instagram-api-get-the-userid
https://api.instagram.com/v1/users/self/?access_token=2291348455.c37b51e.d347a9c5ea214e11b6f952780008c0a3


$userid = "2291348455";
$accessToken = "2291348455.c37b51e.d347a9c5ea214e11b6f952780008c0a3";

$json = file_get_contents("https://api.instagram.com/v1/users/2291348455/media/recent?access_token=2291348455.c37b51e.d347a9c5ea214e11b6f952780008c0a3");
$data = json_decode($json);
echo '<pre>';
print_r($data);
echo '</pre>';


$api = file_get_contents("https://api.instagram.com/v1/tags/YOURTAG/media/recent?access_token=YOURACCESSTOKEN");
$json = json_decode($api,true);
foreach($json['data'] as $data){
  if($data['user']['username']=="YOURSPECIFICUSERNAME"){
     //action
  }
}