× Joomla Facebook Connect support forum

Topic-icon Multiple FB apps on one domain?

Active Subscriptions:

None
14 years 5 months ago #17449 by jayw
I have a joomla component that includes a facebook app. It has it's own app id and canvas page. Users can access the component with their FB login or register on the site as a joomla user.

When the app is viewed inside FB it strips out the joomla headers and sidebars and only displays the application data.

My question is can I have FB users registering through the existing app FB Login AND with jfbconnect? Will someone that login via jfbconnect be able to access and use the FB component?

This type of integration is new to me and I'm not sure if I'm describing the problem correctly. . .

Thanks if you can assist.

-jay
The topic has been locked.
Support Specialist
14 years 5 months ago #17466 by alzander
Jay,
Only one Facebook application can be running on a site at a time. The Facebook Javascript library has to be initialized with a single App ID. If it's initialized twice, the 2nd one will 'win', and whatever app is using the first ID will fail.

I'm not sure what the other component is or does, but JFBConnect has great Page Tab and Canvas support, and now (with the just released v4.1.0) allows you to send app requests to all of your users, or your users to send app requests to their friends. The system relies on the FB Canvas area, and you'd need to have JFBConnect setup to control that.

As for 2 separate applications, there's no way to 'link' the 2. If someone were to authenticate through one app and give permissions to your site, then use the other app, they'd have to authenticate again.

Feel free to bounce ideas off us and ask anything you want. We'll gladly explain the best we can!

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

None
14 years 5 months ago #17519 by jayw
hhmmmm Not the answer I was hoping for.

The component is a classifieds script with FB integration and classified ads are the site's primary purpose.
extensions.joomla.org/extensions/ads-a-a...classified-ads/14446 . It maybe that I JFBC just won't work.

BTW The site I'm referencing is behind a firewall and I would be happy to PM you the login credentials if you want to see what I'm trying to do.

I also have a local news site : www.wakulla.com based on a rockettheme template- it has jomsocial AND almond classifieds so it sounds like I'm going to have to make a decision about which to use. .

Is it possible to use the JFBC canvas app but modify the Almond script to just post ads to Wakulla.com's FB Page - www.facebook.com/wakulla.com
AND
To the user's activity stream?

Again I appreciate your patience with my half-baked understanding of FB.

-jay
The topic has been locked.
Support Specialist
14 years 5 months ago #17523 by alzander
Jay,
It's a Facebook restriction that you can't have two FB applications running on a site at the same time. They only allow you to enter the AppId to initialize the Javascript once. Two times isn't possible. Additionally, when the "Login with Facebook" button is clicked, Facebook is 'told' which extension should handle the user after they've authenticated. It's not possible to have Facebook notify 2 extensions that authentication has occurred, so only one (JFBConnect or the Classifieds) would be able to log the user into Joomla, create their account, or update their profile. Not both.

With that said, if there's some very specific separation you're looking for, we may be able to help you pluck the best parts of JFBConnect and the Classifieds extension for your needs. Specifically, you mention Canvas apps.. if you need just the Canvas App views, which also include the new Friend Inviter and App Request system, of JFBConnect, but want the Classified component to manage authenticating users on the site and other social buttons (like, comments, etc), that's probably do-able. However, if you want them both simultaneously always working, that probably isn't.

Hope that helps,
Alex
The topic has been locked.