× Joomla Facebook Connect support forum

Topic-icon Click on Connect brings site up in Pop up

Active Subscriptions:

None
14 years 3 months ago #2684 by parisi
When I click on the Connect button in your module, a popup appears and I login to FB, my site then loads in that popup. From then on clicking on the connect button in the module loads the site into a popup.

Help.
Thanks,
Paul.
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #2696 by Ivan
I was having a similar issue and found out it had to do with the url your were using in facebook canvas setting. Are you using <!-- m --><a class="postlink" href="www.yoursite.com">www.yoursite.com or yoursite.com">yoursite.com?
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #2697 by parisi
We are using a trailing slash like this <!-- m --><a class="postlink" href="www.company.com/">www.company.com/
The topic has been locked.
Support Specialist
14 years 2 months ago #2785 by alzander
The point Ivan was making is actually that it matters whether you're using www or non-www. Try visiting your site in each to see if one works and the other doesn't.

This post gives information on how to fix that, and other issues, related to the FB app connect URL setup.
<!-- m --><a class="postlink" href="www.cmsmarket.com/forum/index.php?f=38&t=102&rb_v=viewtopic">www.cmsmarket.com/forum/index.ph ... =viewtopic
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #2791 by parisi
Ok - that was very helpful. Thanks! I do have another question - I am not sure if this is what I should expect or what... when I connect I am redirected to a page that says...

Thanks for signing in using Facebook. Do you already have an account on this site, or would you like to create one?

Can I have the user automatically created?

I was thinking that having Create New Joomla Users: set to Yes would not display a screen like this.

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

None
14 years 2 months ago #2795 by parisi
Arg - now - with no changes (as far as I know) - I click on the Connect icon and it pops up and asks for a login (good) but then it loads the site in the popup.

HELP - PLEASE
The topic has been locked.
Support Specialist
14 years 2 months ago #2896 by alzander
Setting Create Joomla User's to No will automatically create them an account using a psuedo username from their Facebook id.

What's your url so we can get an idea of what's happening. The 'site in a pop-up' is almost always caused from an incorrect connect URL in your FB app. Also, check if you have any other Facebook modules (FB Fans, etc) that are inserting a FB.init('xxxxxxx') line into your page. The xxxx is the API key, and if it's different than the JFBC API key, that can cause this problem.
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #2971 by moosed
I just upgraded to the latest version of JFBConnect (v2.5.3). The newer version complains in the Overview screen if you omit the trailing slash from the Facebook application CONNECT string, which was not flagged on my previous version, 2.1.2. So, I updated my FB App's CONNECT string to CentralAlumni.org/

This created the infamous "Connect brings site up in Pop up" issue, depending on the URL one used to access the site.

Background: I have a primary domain and alias, as well as a secondary domain and alias, all pointing to the primary site's top-level document root of my site:

1 - Primary: CentralAlumni.org | alias: www.CentralAlumni.org
2- Secondary: CentralAlumni.com | alias: www.CentralAlumni.com

I had an RewriteCond to change the alternative URLs into the Primary/non-www URL. When I changed the FB API-registered CONNECT string, I had to change my .htaccess to account for the training slash.

Here is the relevant code from my .htaccess file:

########## Begin - Rewrite rules for CentralAlumni.org alternative URLs
#
# Official URL (linked to Facebook API Keys):
# <!-- m --><a class="postlink" href="centralalumni.org/">centralalumni.org/ (primary domain)
#
# Alternate URLs, defined at hosting DNS:
# <!-- m --><a class="postlink" href="www.centralalumni.org/">www.centralalumni.org/ (primary with 'www.')
# <!-- m --><a class="postlink" href="centralalumni.com/">centralalumni.com/ (secondary domain)
# <!-- m --><a class="postlink" href="www.centralalumni.com/">www.centralalumni.com/ (secondary with 'www.')
#
# Flags: NC => NoCase (case insensitive)
# OR => logical "or"
# L => Last (rule is completed, now take action)
# R=301 => Redirect=Permanent
#
RewriteCond %{HTTP_HOST} ^www.centralalumni.org$ [NC,OR]
RewriteCond %{HTTP_HOST} ^centralalumni.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.centralalumni.com$ [NC]
RewriteRule ^(.*)$ <!-- m --><a class="postlink" href="centralalumni.org/$1">centralalumni.org/$1 [R=301,L]
#
########## End - Rewrite rules for CentralAlumni.org alternative URLs


Now, regardless of which URL is followed, the Apache mod_rewrite feature will change the client's URL to CentralAlumni.org/, satisfying the Facebook API CONNECT setting. No more mini-me site pop-ups!!

Hope this is useful for someone else out there.

Aloha!
The topic has been locked.
Support Specialist
14 years 2 months ago #3005 by alzander
Thanks for helping out, moosed.

parisi, if you are still having issue, let me know and I will try to help.
The topic has been locked.
Active Subscriptions:

None
14 years 1 month ago #3113 by rembrandt
I have the same problem. Followed all instructions, the problem with the site loading in a pop up seems to be intermittent. If I am already logged into facebook, at first it seemed to be OK. I then tried to log out of my site and it would not log out. I did get a pop up from facebook saying "you will now be logged out of both facebook and this site"

I tried it with www and no www. If you access my site without the www, it switches to www in the browser after the site loads. I don't know if this helps, but here is the URL in the popup

<!-- m --><a class="postlink" href="www.dirt.com/component/option,com_jfbcon...7f3f35328afdfe%22%7D">www.dirt.com/component/option,co ... fdfe%22%7D

I do have the trailing slash in my settings in facebook
The topic has been locked.