Facebook login - how to develop on both localhost and in production?

后端 未结 6 2432
南方客
南方客 2020-12-29 02:57

I am developing a website which uses the Facebook login. Now, I want to be able to get this to work both in my production environment, as well as in my development environme

6条回答
  •  长情又很酷
    2020-12-29 03:40

    Update: As of 2018 the path to this setting is now Products > Facebook Login > Settings > Client OAuth Settings the rest of this answer is still valid.


    There is a better way. You just need to add valid callback URL's for your localhost to Settings > Advanced > OAuth Settings.

    enter image description here

    This method allows you still have your production website URL while allowing oauth from dev, staging, production, etc.

提交回复
热议问题