Changing Facebook Oauth redirect url

14,643

This is unfortunately not possible. Just redirect user to your redirect_uri which will redirect you to the correct location

The URL to redirect to after the user clicks a button in the dialog. The URL you specify must be a URL of with the same Base Domain as specified in your app's settings, a Canvas URL of the form https://apps.facebook.com/YOUR_APP_NAMESPACE or a Page Tab URL of the form https://www.facebook.com/PAGE_USERNAME/app_YOUR_APP_ID

https://developers.facebook.com/docs/reference/dialogs/oauth/

Share:
14,643
Vik
Author by

Vik

http://www.oracle.com/innovation/innovator-vivek-kumar.html http://adfjsf.blogspot.com http://www.linkedin.com/vikceo http://www.twitter.com/vikceo

Updated on June 04, 2022

Comments

  • Vik
    Vik almost 2 years

    In our Java EE app we are invoking the fb oauth flow to get accessToken. For this purpose we make a call with the callback url to the fb server with app key and secret.

    At this moment the same url is provided in the fb app url section.

    However, is it possible if we can some how change the redirect url to go to a different server ? I have seen just changing the callback url in the code does not work. Looks like it has to be same in the code as well as in the fb application.

    This make very difficult to test or use the same app to try things from two different web servers.

    Any advise on this?

  • Vik
    Vik about 12 years
    are you sure? any doc references ? its a big issue in that case
  • Oliver Tappin
    Oliver Tappin about 11 years
    The problem I have with this is that the Facebook authentication page will open in a new window. How do you make it happen in the same window?