开发者

New Facebook App required for every environment?

开发者 https://www.devze.com 2023-04-12 18:57 出处:网络
I managed to add \'Facebook Login\' functionality to my Ruby on Rails project and it works well with the Site URL pointing to my local development environment (e.g, http://www.dev.project.com:3000). H

I managed to add 'Facebook Login' functionality to my Ruby on Rails project and it works well with the Site URL pointing to my local development environment (e.g, http://www.dev.project.com:3000). However, when pushing my code to the production server, the Site URL set in the Facebook App has to be changed accordingly (e.g., http://www.project.com). After that, the Facebook Login works for the production environment, but not anymore in my local development environment.

In other words, is it possible to specify multiple Site URLs for a single Facebook App, or do I really have to create a new Facebook App for every dev开发者_如何学JAVAelopment environment?


Nowadays you can add multiple domains for your Facebook application. This should solve this issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号