× Joomla Facebook Connect support forum

Topic-icon Login to Facebook, but needs to support multiple domain names.

Active Subscriptions:

None
I am running ONE joomla installation but it is accessible via multiple domain names and Facebook APPs currently only support one domain per app.

So, I was wondering, am I able to switch the facebook app id that is stored in the configuration depending on the domain the user is accessing the site from? So, for instance, if user was accessing the site from "www.domainONE.com" then it would load the facebook app id that is associated with "domainONE.com" and so on.

Is this possible?

Thanks for the help,

Ryan
The topic has been locked.
Support Specialist
No, you can't. Facebook would require two separate applications for that. Additionally, it sounds like you have the same Joomla site running on multiple domains. We'd recommend against doing that for many search engine reasons, and simply recommend you redirect one domain to the other to prevent duplicate content as well as allow you to integrate Facebook with the single domain.

Hope that explains, but if you have other questions, just let us know.
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks for the quick reply.

What I wanted to do was make separate apps for each domain name and separate ids of course. Then, when a person were to access "domainone.com" it would use the key from domainone.com app. And then if they were to access domaintwo.com, it would grab the key and id information fromt he domaintwo.com app. They will still have to login to each site separately.

By the way, I have it so that the meta name, title, etc changes for each domain name so that google should be recognizes them as completely separate sites for SEO purposes. Hopefully i'm on the right track...
The topic has been locked.
Support Specialist
Ryan,
Maybe I'm confused then. Are domainone.com and domaintwo.com run from two separate Joomla installations? If so, this isn't a problem at all. If not, then I'm still a little confused about what you're shooting for.

Even with separate meta tags, if the pages are otherwise identical (or at least the main contents of the pages are), you'll be splitting your search engine rankings across both.. Instead of having 1000 links going to one page, half may go to one and the other 500 to the other. The result is that both pages may rank on page 2 of search results, whereas, with one domain, that domain could be on the first page of results.

That's the "duplicate content penalty". Google doesn't directly 'hurt' your pages.. it just doesn't give all the credit to the generated content that it should because you've spread it out.

Hope that makes sense, and hope I answered your question, but if you have more, just let us know!

Alex
The topic has been locked.
Active Subscriptions:

None

Maybe I'm confused then. Are domainone.com and domaintwo.com run from two separate Joomla installations? If so, this isn't a problem at all. If not, then I'm still a little confused about what you're shooting for.

They are running on the same joomla install.

So, for instance:

USER 1 accesses "domainONE.com" and clicks on the faceobok login. I want it to log them in using domainONE's app id. I do not need this user to be able to login to all sites at once.

USER 2 accesses "domainTWO.com" and clicks on the facbook login. I want it to then grab the credentials for DomainTWO.com app and log the user in.

I have been using this PHP code throughout my entire site to change the design, links, etc depedning on the domain name the user is accessing:
$domain = $_SERVER['SERVER_NAME'];
if ( $domain == "www.domainONE.com" ) { 

HTML / PHP / other code goes here for domainone.com

} elseif ( $domain == "www.domainTWO.com" ) {

HTML / PHP / other code goes here for domaintwo.com

 } 

As you can see, I want to be able to put the FB app ids in the line of code for domainone.com and domaintwo, but I'm afraid the keys are always stored in the database though...
The topic has been locked.
Support Specialist
Yeah, the keys are stored in the database, and we don't have an easy way to override what you're looking to do. We could help you easily do it (there's only one place that sets the keys), but it's not something we'd ever support in a future release.

Just let us know if you need help implementing it.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None

alzander wrote: Yeah, the keys are stored in the database, and we don't have an easy way to override what you're looking to do. We could help you easily do it (there's only one place that sets the keys), but it's not something we'd ever support in a future release.

Just let us know if you need help implementing it.

Thanks,
Alex

Okay, if I were to go ahead and buy your product, would you help me do this? If so, that would be great. Also, one more question: will it import the user's avatar into JomSocial as well? And does it support JomSocial 2.2.3 and Joomla 1.5? Thanks again.
The topic has been locked.
Support Specialist
Yes, yes, and yes. If you haven't noticed, our support is very good. We can definitely help you with the change to hard-code a separate App Id & Secret key using the code you have above. You would need to manually do this with any new releases, as we wouldn't add that ability into our app, just to warn you, but it shouldn't be overly complex.

As for JomSocial integration, we integrated Facebook into JomSocial before they even did.. and we support Joomla 1.5-1.7 and up to JomSocial 2.2.4 :D

Let us know if you have any other questions!
Alex
The topic has been locked.
Active Subscriptions:

None
Okay, thank you for the response and you definitely have my interest. Your support does look very good, which is extremely important to me of course.

I have spent already more money on this project than I want to and, as you know, JomSocial already has a Facebook connect plugin. What is the advantage to your plugin over the built in JomSocial one? I am leaning more towards yours since it is able to work with a variety of different components, which is very appealing.
The topic has been locked.
Support Specialist
In addition to all the social widgets, the Facebook Fan Page or Canvas page support, and a lot of other Facebook-only features, the page below tries to describe where JFBConnect improves on what JomSocial offers. The main benefit, originally, was the customizeable profile import so you can choose the fields to import from Facebook.. Jomsocial imports, I think, just the name and bio fields. There's a lot else though.
www.sourcecoast.com/jfbconnect/features/...n/jomsocial-facebook

Frankly though, we'd recommend you use JomSocial's integration first.. figure out if it works for you.. and if you feel it's lacking as so many other users of JFBConnect has, come to our side. If not, great. Don't put extensions on your site that you don't need :)

.. and yes, we have great support.

Alex
The topic has been locked.