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

后端 未结 6 2414
南方客
南方客 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:31

    I have the same problem.

    The only solutions I have found are:

    • yes... edit the host file on your local machine: How to Test Facebook Connect Locally
    • create another Facebook app only for development purposes: Facebook Oauth on localhost for testing during development (the blog is about Rails but the solution to use different apps depending on the environment is still valid for other languages)

提交回复
热议问题