We have our main website which has its own facebook app id. Now using the domain module we are creating different websites with different domain names (not subdomain).We are however using the same database for the main website and all these different domain. Only keeping the theme different. Now on my initial test, the facebook connect on the new domain is not working. This is error I have

"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."

I understand that facebook app id only works for the domain and subdomain not for the entirely new domain. Any suggestions how I can use the fbconnect with different app id for the different domains?

Comments

agentrickard’s picture

Use the Domain Conf API (hook_domainconf()) to create separate API key settings for each domain.

See API.php for information.