title: Instagram Latest post API suddenly stopped working
body: <p>My instagram feed was working fine but it has stopped working. I am trying to find a solution. First I assume the issue is related to SSL, I even got SSL certificate for my website. But doesn't seem to work. Any help or suggestion is appreciated. Output showed latest image posted on instagram and now shows nothing.<a href="https://i.stack.imgur.com/aPuxg.png" rel="nofollow noreferrer">1</a></p>
  
  <pre><code>  &lt;div class="col-xs-12 col-sm-6 col-md-5 no-padding"&gt;
  &lt;div class="insta_img"&gt;
    &lt;?php
                  $instagram_id = get_field('instagram_id', 'option') ? get_field('instagram_id', 'option') : '';
                  $access_token = get_field('instagram_access_token', 'option') ? get_field('instagram_access_token', 'option') : '';
                  $url = "https://www.instagram.com/{$instagram_id}/?__a=1";
                  curl_close($ch);  
                  $ch = curl_init($url);
                  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                  $json = curl_exec($ch);
                  curl_close($ch);
  
                  $data = json_decode($json);
                  $data = $data-&gt;user-&gt;media-&gt;nodes;
  
                  $text = $data[0]-&gt;caption;
  
                  $created_time = $data[0]-&gt;date ;
  
                  $images = $data[0]-&gt;thumbnail_src;
                  /
  
              ?&gt;
    &lt;img src="&lt;?php echo $images; ?&gt;"  alt="instagram"/&gt;
    &lt;div class="insta_content"&gt;&lt;?php echo $text; ?&gt;
      &lt;dt&gt;&lt;?php echo date('d/m/Y', $created_time); ?&gt;&lt;/dt&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>