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?
Facebooker2 doesn't have built-in support for this, but you can make it support it!
You'll need to override some of the functionality in this file:
facebooker2/lib/facebooker2.rb
Specifically this method:
Change the first line to say:
Then add a new level to your facebooker.yml file, something like this:
Let me know how that goes.