Our application requires the user to login through Facebook’s API. Facebook throws these parameters:
- ID
- First Name, Last Name
- Email ID
- APPed URL
Our program was supposed to use the APP URL as input, use CURL functionality of PHP, and get the redirected URL from Facebook.
When redirected Facebook is throwing this login URL:
https://www.facebook.com/login.php?next=https%3A%2F%2Fwww.facebook.com%2Fapp_scoped_user_id%2F10210167107598661%2F
How can we get the actual vanity URL instead of the login URL?