I have a RoR website at domain1.com that uses a facebook application linked to that domain.
I want to make domain2.com to point to the same server as domain1.com, so domain1.com/foo
is equivalent to domain2.com/foo
.
Obviously (I think) I need to make a second facebook application, because the one linked to domain1.com won't work if they visit the site under domain2.com.
However, I don't know how to tell facebooker2, in its facebooker.yml, to use one application if the request comes from one host or a different app if it comes from the other.
Is there any way to do this, or do something that achieves the same result?