Topic-icon Facebook App Redirects to Site URL - Not Displaying in Iframe

Active Subscriptions:

None
Dear sir,

My Facebook App is not displaying in Facebook Iframe. It always Redirect to Canvas URL. I Guess it is against Facebook Policy.
I contacted my hosting provider thinking it may be an SSL issue. But they said. No Issues from them.
I am not a coder. I am really not getting any idea on how to fix this. Can you please please help.

This is the URL of my app.
apps.facebook.com/peoplereviews

In .htaccess file i am using these 2 redirects. Is it causing the error?

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteEngine on
rewritecond %{http_host} ^peoplereviews.net [nc]
RewriteRule .? http://www.peoplereviews.net%{REQUEST_URI} [R=301,L]
The topic has been locked.
Support Specialist
I don't think those .htaccess settings are causing the problem, but it's easy to disable them temporarily and test again.

JFBConnect does do some redirection and checking if in an iFrame, but that shouldn't be causing your issues either. It's easy to try and disable that as well. To do so, please edit the /plugins/system/jfbcsystem/jfbcsystem.php file and search for "checkFrame". You should find some code that looks like:
if ($this->jfbcCanvas->get('canvasEnabled', false))
            $canvasCode = "jfbc.canvas.checkFrame();";
        else
            $canvasCode = "";
Change that to the following (commenting out the first 3 lines):
//if ($this->jfbcCanvas->get('canvasEnabled', false))
            //$canvasCode = "jfbc.canvas.checkFrame();";
        //else
            $canvasCode = "";
Then, test again and let us know how if that fixes the issue or not.

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

None
Dear Sir.

I made the changes as you said and uploaded the edited file to the server. But still it is redirecting.
The topic has been locked.
Support Specialist
I found it. You have the code below in the HTML of your site. The purpose of that code is to explicitly prevent your site from being loaded in an iFrame:
if (top!==self) {
		top.location=location;
	}
You'll need to remove that Javascript if you want your site to work within an iFrame on Facebook. That is not part of JFBConnect whatsoever, so I don't know where or how to remove it.

Hope that helps,
Alex
The topic has been locked.