In my experience so far, you can use the same facebook application for dev, testing, staging, production, etc. The key (referenced by lnetanel ) is that the application must have a separate return URL configured for each environment. For example, I use devise + omniauth and have the following in ... /config/initializers/omnniauth.rb, which is used to build return URLs:
if Rails.env.production?
OmniAuth.config.full_host = "https://www.mydomain.com"
elsif Rails.env.test?
OmniAuth.config.full_host = "https://www.stag.mydomain.com"
elsif Rails.env.development?
OmniAuth.config.full_host = "https://localhost.mydomain.com"
end
: localhost.mydomain.com /etc/hosts, , , , .