Topic-icon Iframe canvas craziness

Active Subscriptions:

None
14 years 4 months ago #18331 by branic
I am using JfbConnect 1.7 with planw for it to be primarily a canvas app. However I am getting some weird template repeating in the canvas when I go to the app in facebook. I attached a screen shot that may help you understand. This only occurs in the canvas app, the website is fine.

File Attachment:
The topic has been locked.
Support Specialist
14 years 4 months ago #18339 by alzander
Replied by alzander on topic Iframe canvas craziness
Brandon,
That's a new one to us! What version of JFBConnect are you using? In 4.1.1, we changed how you can set the template that is shown in the canvas view, including a "Use Default" option. Can you test with the Use Default option as well as other Template Styles you may have configured to see if the problem persists in all views?

Let us know how that goes. Also, if you could, please post (or private message) us the URL of your actual site and your Canvas app so we can see what's actually happening.

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

None
14 years 4 months ago #18358 by branic
Replied by branic on topic Iframe canvas craziness
Hello Alex,
It is version 4.1.1 and I tried changing the default template settings, using different templates and I still get the error in the canvas app.

here is the url to the webiste: www.myphotobattle.com

and here is the canvas app: apps.facebook.com/myphotobattle

Thanks for your help
The topic has been locked.
Support Specialist
14 years 4 months ago #18366 by alzander
Replied by alzander on topic Iframe canvas craziness
Brandon,
The problem is likely that you don't have an SSL certificate installed on your server. Without that, Facebook won't sned us the information about the current user (or even let us know that the page is being viewed within Facebook). If JFBConnect can't properly detect the user is logged into Facebook, I'm not sure what will happen.

I can't even visit the site at the linke you sent, as Facebook automatically redirects it to the https version, which then throws the following error:
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

The reason you can see it is because admins can view their own apps in non-secure mode, but no one else can. For more information on obtaining an SSL certificate, we recommend looking at our guide:
www.sourcecoast.com/jfbconnect/docs/comm...ficates-for-facebook

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

None
14 years 4 months ago #18468 by branic
Replied by branic on topic Iframe canvas craziness
Hello Alex,

I installed SSL using the link provided and I am still receiving the same errors :(
The topic has been locked.
Support Specialist
14 years 4 months ago #18478 by alzander
Replied by alzander on topic Iframe canvas craziness
On your Canvas URL, I'm now seeing the same thing that's on your site homepage. I don't see the doubling, and everything looks fine from my end. So, it does seem like there's been some good progress.

Are you still seeing the doubling? Can you:
* Try from a different browser?
* Try from a different computer?
* Try when not logged into the Joomla site or into Facebook?

Let us know how that goes, but again, from my end, it seems fine.

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

None
14 years 4 months ago #18495 by branic
Replied by branic on topic Iframe canvas craziness
Yes, it's still making doubles, when you go to the canvas app please click on the "Battle Now" menu link. From there you have to scroll down a bit to see it.
I tried different browsers(safari, FF, IE, and Chrome)
I tried logging out of Joomla and facebook and still the doubles.
I did not try a different computer because my windows machine is out of order. I am only using MAC OSX.
The topic has been locked.
Support Specialist
14 years 4 months ago #18499 by alzander
Replied by alzander on topic Iframe canvas craziness
Brandon,
Thanks for the instructions on how to reproduce.. that's always helpful :D

Photobattle is loading it's comments through AJAX, and it seems like our Canvas integration is intercepting those calls. A quick code change should help get around this. First, please make sure you're using JFBConnect v4.1.1. Then, edit the /components/com_jfbconnect/libraries/canvas.php file. At around line 45, you'll see:
public function setupCanvas()
    {
Add the 2 lines below to that:
public function setupCanvas()
    {
         if (JRequest::getCmd('format', '') == 'raw')
              return;
That's something we should probably be doing anyways. Hopefully, that helps. If not, we can make a more photobattle specific check and not do our magic in that mode.

Let us know how it goes,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18503 by branic
Replied by branic on topic Iframe canvas craziness
Hello Alex,

Unfortunately that did not work :(
It's definitely the comment system though because I can disable them within the component settings and the error goes away.
I know that fixing this is outside the scope of sorcecoast responsibilities but it would sure be helpful :=D

If you need access I can PM you details

Thanks agiain
The topic has been locked.
Support Specialist
14 years 4 months ago #18517 by alzander
Replied by alzander on topic Iframe canvas craziness
Little is outside of what we consider our responsibilities if it's related to JFBConnect :D

If you'd like to test one other thing first, please change the statements above so it looks like below:
public function setupCanvas() 
    { 
              $this->set('resizeEnabled', false);
              return;
That will completely disable our Canvas integration, but will be a great way to diagnose if that's really what's causing the issue.

Let us know how that change goes, and feel free to PM me a super admin credentials, and we can investigate further as well.

Thanks,
Alex
The topic has been locked.