Getting a Vanity URL from FB login API

624 Views Asked by At

Our application requires the user to login through Facebook’s API. Facebook throws these parameters:

  1. ID
  2. First Name, Last Name
  3. Email ID
  4. 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?

0

There are 0 best solutions below