'How to get user information after Instagram Oauth call

I have an Instagram oauth url that allows the user to authenticate from a different site. How can I get the user data after the user accepts the conditions? Right now, all it does is redirect the user, how can I access the data? Here is the URL:

https://www.instagram.com/oauth/authorize/?app_id=ID&redirect_uri=URL&scope=user_profile&response_type=code


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source