Search code examples
htmlinstagraminstagram-api

Using the Instagram API and my own Access Token, why can't I get any user's data?


I'm using my own access token and calling the link https://api.instagram.com/v1/users/hacklifeprius/?access_token=ACCESS-TOKEN

with my own access token, but I get an html page saying:

Sorry, this page isn't available. The link you followed may be broken, or the page may have been removed. Go back to Instagram.

However, if I change my username to self then it works and I get a json. This was working last week. What's going on? By the way, I am on sandbox.


Solution

  • I should have put my Instagram user's ID number, not username.