× Joomla Facebook Connect support forum

Topic-icon Multiple Apps per domain

Active Subscriptions:

None
11 years 7 months ago #26604 by fb_100000532508192
Hi,

just wondered have simple or not it would be for jfbconnect to support multiple apps per domain.

stackoverflow.com/questions/7477258/how-...-and-ssl-certificate

the link above shows it being posible. Would this require a major hack?

thank you in advance
The topic has been locked.
Support Specialist
11 years 7 months ago #26631 by alzander
Replied by alzander on topic Multiple Apps per domain
Very difficult, unfortunately. The post from Stack Exchange actually sidesteps the real the issue by just pointing each App to a different sub-folder on your domain. You could do that by creating site.com/app1, site.com/app2, site.com/app3 where each appX directory is a separate installation of Joomla with JFBConnect. Each of those installations would have their own App ID and that would be just fine.

However, having all your apps point to one Joomla site and then having JFBConnect sort out which one should be loading isn't currently possible and I don't know how much work it would take.

We do have a goal to look into this at some point as multiple Page Tabs is definitely an intriguing feature we'd like to implement. If we did that, multiple Canvas/Apps would be pretty much done as well. However, I just don't know where to start now and it's certainly not a line (or a few) of code.

Hope that explains,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26772 by fb_100000532508192
Thank you for your reply. Can you explain how your current set-up works with canvas/tab. i might be able to help provide a solution.
The topic has been locked.
Support Specialist
11 years 7 months ago #26776 by alzander
Replied by alzander on topic Multiple Apps per domain
Almost all of our logic for App Canvas stuff is in the /components/com_jfbconnect/libraries/canvas.php file. The problem with multiple canvases is that Facebook sends a special cookie which is signed using the App Secret for the app. If you have 100 apps running on your site, we'd have to go through each one to see if we can decrypt the cookie from Facebook. Each check takes a lot of time (in the computer world) and can cause some issues. They may have improved the methods to detect things, but that's how it was earlier this year.

There are likely other things we could do like forcing the Page Tab URL to something like site.com/index.php?fbPageId=1234 so that we'd know ahead of time, but again, more things we just haven't looked into. Additionally, we'd have to make an administration area for each Page Tab in JFBConnect which could get confusing as *most* users wouldn't use many/multiple Page Tabs.

Feel free to poke around that canvas.php file and see how we do detection of things, and if you have questions, just let us know!

Thanks,
Alex
The topic has been locked.