Facebook app domain name when using localhost

前端 未结 16 667
说谎
说谎 2020-12-07 13:18

From a tutorial here:
http://ankurm.com/blog/api/using-localhost-for-facebook-app-development/1091/

I tried to set up a Local development Area for my Facebook

相关标签:
16条回答
  • 2020-12-07 13:31

    Working solution (August 2018)

    First, select your app in the developers dashboard.

    Then make sure your app is in development mode, as it allows localhost over HTTP. To do so, click on the toggle situated at the top right of your app's page.

    Finally, please follow the notes below as they could cause trouble if improperly filled:

    • Settings > Basic > App Domains should be empty
    • Products > Facebook Login > Settings > Valid OAuth Redirect URIs should be empty
    0 讨论(0)
  • 2020-12-07 13:35
    1. Leave App Domains empty
    2. Go to Website with Facebook Login
    3. Add http://localhost:port_number/
    4. Save changes and try again. For more information visit

    http://developers.facebook.com/docs/samples/canvas/ Happy coding :-)

    0 讨论(0)
  • 2020-12-07 13:35

    I tried all the solutions mentioned here but none of them worked.

    What solved my issue was copying the "OAuth redirect URI" from firebase to facebook app "Valid OAuth Redirect URIs"

    I left all the domains blank

    0 讨论(0)
  • 2020-12-07 13:37

    If you are getting the protocol errors, not only do you need to REMOVE the Http:// but also if there is any backslash at the end of the web address, you must remove that too or it won't work. I did this and it worked perfectly! Holla!

    0 讨论(0)
  • 2020-12-07 13:38

    When I wrote that tutorial at that time port was allowed in app domain. And I actually able to run app with 81 port (wamp server). Now it looks that facebook is not allowing port in url. You can use localhost in app domain.

    I will update information as soon as possible. I am trying to find out solution.

    A temporary solution is use localtunnel http://progrium.com/localtunnel/

    0 讨论(0)
  • 2020-12-07 13:40

    2018 working solution

    It took me ages to figure this out, so I'm going to share my solution.

    I tried all the suggested answers, but nothing worked for me, and in the end all I had to do was to go to https://developers.facebook.com/apps/YOUR_APP_ID/fb-login/settings/, and add my full callback url in the Valid OAuth redirect URIs box.

    In my case, using ruby on rails, my url looked like this http://localhost:3000/user/auth/facebook/callback.

    And right after I added it, everything started working! Hope this helps someone else facing this issue.

    0 讨论(0)
提交回复
热议问题