How to get access token for Instagram Basic display API?
1

I am getting thi error: java.io.FileNotFoundException: https://api.instagram.com/oauth/access_token?client_id=xxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxx&grant_type=authorization_code&redirect_uri=https://xxxx.com

while fetching access token. However I was successful in generating the code that is required in the params of this API

I am following the documentation on: https://developers.facebook.com/docs/instagram-basic-display-api/getting-started

and I am pretty sure I have followed it correctly. But somehow I am getting this file not found error on line: String response = streamToString(urlConnection.getInputStream());

Please help, I am stuck on this issue for a long time now.

Bespoke
Asked about 4 years ago