Reputation: 5433
I've created an sample application for development and I've created another sample application with all the same properties except domain, since all the return_urls should be based on the domain. I'm using One version at my localhost and using other version in another test domain.
So whenever i copy all the code to my test domain, i need to change the app key , secret and return url etc..
What i need to know is whether its possible to add two or more domains for a single app and only change the return url without changing the app key, secret etc..??
Update:
Sorry i intended to say without changing app key, secret.. That was a typo mistake that changed the whole context of the question.
Upvotes: 5
Views: 8583
Reputation: 265
Below steps help me to solve same problem.
Upvotes: -1
Reputation: 6441
You can now create a Test App as a "child" app of your main app.
Similar to Test Users, Test Apps let you quickly create Facebook App IDs for use during the development, testing, staging or QA phases of the app development lifecycle.
Test Apps are like regular apps in that they have their own App ID and independent settings, but they offer a number of advantages for use during pre-production
A test app has its own URL and Domain, independent of the parent app.
Upvotes: 6
Reputation: 88
No this is not possible. This has already been answered here: Allowing multiple domains for 1 Facebook App (like Tumblr)
You will need to set up a new facebook app for each distinct domain you create. Ideally you should have a configuration file for each domain in which you can store the app id/secret thereby preventing the need to edit it with each deploy.
Upvotes: 0