I am trying, for the first time, to make a Java desktop app using Instagram Graph API. I am having trouble with a user logging in with their instagram account. The official Meta website only shows documentation to sign in for the Basic API, but I assumed it would work for the Graph API as well. My problem is that the authorization url is not working when I try. When I do the link I get error "{"error_type": "OAuthException", "code": 400, "error_message": "Invalid platform app"}".
On the website it says: "To begin the process, get the Authorization Window and present it to the user:
So I made the url: https://api.instagram.com/oauth/authorize?client_id={id}&response_type=code&scope=user_profile&redirect_uri=https://google.com/
Of course, this gives me an error when loaded. According to the documentation, the user should get a code which the app will use to authenticate them. I have no idea why this link is not working.
According to other websites, it appears a Instagram Tester may need to be added to the app for this to work. Problem is in the app dashboard on the website, under App Roles -> Roles, there is no option for "Instagram Testers" specifically. The only product my app has is "Instagram Graph API" yet it shows nothing for Instagram Testers. I have also seen people talk about a place to put your redirect uri in the app dashboard, yet I have never found such a place. I'm not sure if that is the problem, or if it is something else. No answer online has helped me solve this issue.