title: Instagram API endpoint
body: <p>I've tried many ways to use Instagram's API. Many repositories in GitHub have APIs using PHP, but all are obsolete.</p>
  
  <p><a href="https://www.instagram.com/developer/changelog/" rel="nofollow noreferrer">https://www.instagram.com/developer/changelog/</a></p>
  
  <p>I couldn't find endpoints or some way to working with Instagram's API using PHP since there were changes in April. Could someone help me?</p>
  
  <p>I'd like to get some functions like follow and unfollow people.</p>
  
  <p>I'm using Sandbox Mode and have already authorized some accounts for testing, but it always returns me this:</p>
  
  <pre><code>stdClass Object
  (
      [meta] =&gt; stdClass Object
          (
              [code] =&gt; 400
              [error_type] =&gt; APINotAllowedError
              [error_message] =&gt; This endpoint has been retired
          )
  
  )
  </code></pre>