Topic-icon 2 domains, 1 website

Active Subscriptions:

None
13 years 1 day ago #9377 by fb_1030728510
Hello,

Is it possible to enter 2 api's in this program? I tried other facebook connect programs, but they only had the possibility of entering 1 API, but then only 1 domain will work instead of both.

Thanks already.
The topic has been locked.
Support Specialist
13 years 5 hours ago #9411 by alzander
Replied by alzander on topic 2 domains, 1 website
Facebook won't let you use multiple API keys on the same page. They have one Javascript library and it looks for the 'last' appID parameter it can find on the page. If you use multiple, you'll get unexpected (and unwanted) results.

If both domains point to the same website, you should generally just have a redirect setup from domain 2 to domain 1. This is better for search results, and will prevent issues like you mention above. Of course, each person's website is there own, and you may have valid reasons for doing it your way.

Finally, if the 2nd domain is a sub-domain (or sub-folder) of the main domain, you can use the same API key for both domains. You simply need to make sure the Base URL setting in your application is configured correctly.

Hope this helps, and good luck!
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #9452 by fb_1030728510
Replied by fb_1030728510 on topic 2 domains, 1 website
Thank you very much for the answer. Guess i need to forward 1 site then.
The topic has been locked.