2 domains, 1 website

2 domains, 1 website

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.

fb_1030728510
Bart
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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!

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23832 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 2 domains, 1 website

Thank you very much for the answer. Guess i need to forward 1 site then.

fb_1030728510
Bart
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11508
Total Polls:
0
Total Posts:
48439
Posts today:
10
User Info
 
Total Users:
47480
Newest User:
scottrobins
Members Online:
1
Guests Online:
1155

Online: 
alzander
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program