To start the Oauth process, use the link https://tehranafro.com/oauth?app_id={YOUR_APP_ID}
Once the end user clicks this link, he/she will be redirected to the authorization page.
Once the end user authorization the app, he/she will be redirected to your domain name with a GET parameter "code", example: http://yourdomain/?code=XXX
In your code, to retrieve the authorized user info, you need to generate an access code, please use the code below: