× Joomla Facebook Connect support forum

Topic-icon Login does not work on www. site

Active Subscriptions:

None
My new site www.medlink-uk.net is hosted with Siteground who seem to leave the www off.

The site works/navigates with or without www.medlink-uk.net, but the Joomla admin area is in medlink-uk.net.

As a consequence when I set up FB App and JFBC they wanted the address without the www.

Although the site works from either address, your FB login module only works from the address without the www.

Any suggestions as my customers are likely to go to the site as www.medlink-uk.net?

Can I create a login page at medlink-uk.net/login that they can reach from a menu item on www.medlink-uk.net?

Many thanks, Mike Welsh
The topic has been locked.
Support Specialist
15 years 1 month ago #9717 by alzander
In your Facebook application, you can configure it to work across all subdomains for a site (www looks like a subdomain to the world). To do so, when setting your application information, you should set it up as follows:
Site URL: www.medlink-uk.net/
Base URL: medlink-uk.net

Once that's done, Facebook shouldn't care whether the user is at www or non-www. There are also other ways to redirect all traffic automatically from www or non-www to the other. This is generally a good recommendation for SEO purposes, because even to Google, those sites look different, which means your search engine rank can get spread between the 2 sites.. which is never good. If you're on a Linux server, and using .htaccess files, the code to redirect is pretty easy.. just let us know and we'll drum it up (or a Google search will bring it up quickly).

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9723 by fb_100000552265523
Great, thanks. That worked.

Now I see the status update on my FB page after I registered, but I do not get the status update when I log back in, even though they both have the same settings.

Any ideas?

Also would appreciate that redirect code for the .htaccess file.

Many thanks, Mike.
The topic has been locked.
Support Specialist
15 years 1 month ago #9725 by alzander
No great guesses as to why you don't see the status update on login. Obviously, make sure you have a "I just logged in.." message set. Also, check your User plugins to make sure none of them are forcing a redirect after login. We post to the wall after all the User plugins have fired, and if one does a redirect, it will prevent the rest of our login process from proceeding.

As for the redirect to www, here's what we do. For non-www, just remove the www in the first line and second:
RewriteCond %{HTTP_HOST} !^www.sourcecoast.com [nc]
RewriteRule ^(.*) http://www.sourcecoast.com/$1 [r=301,nc,l]

As with any htaccess change: test, test, test!

Hope this helps, and good luck!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9730 by fb_100000552265523
Hi,

Not sure about this User plugins redirecting. This is a cloned site that I am going to modify and it did not use any login modules. Are there some of yours I need to check so we can post status on login?

Have also enabled Friends/Facepile. Can you confirm this will only show photos of registered friends of a registered user?

Is there a way to show random/latest photos of all registered users?

Also when Registered status is posted we get the "Joomla! - the dynamic portal engine and content management system" message on the Wall post. I thought this was the Joomla Global Configuration Metadata description, but although I have changed it, it still appears on a registration. How do I get my message on the Wall post under our name and URL?

Thanks, Mike.
The topic has been locked.
Support Specialist
15 years 1 month ago #9734 by alzander
If you don't mind, can you post the enabled User plugins you have running on your site? That will help us narrow down if one of them is redirecting the user.. usually they're named obviously like.. "Autologin" or "Redirect after Login".

The Facepile can be configured to show friends who have Liked a page or have signed up for your application. The avatar pictures will only be for friends, and not 'everyone'. You can read more about the specifics of the JFBCFriends/Facepile plugin on Facebook's page below:
developers.facebook.com/docs/reference/plugins/facepile/
Specifically, the quote below is probably what you're looking to verify:

The plugin only displays friends photos. If the user does not have friends who have liked your page or have connected to your site, no faces will be shown.


Regarding random photos of registered users, we don't have this ability. Not all registered users may come from Facebook. If you want something like this, we'd recommend looking into Community Builder or JomSocial which are on-site social networking components. JFBConnect is more tailored for integration between Facebook and Joomla, but not for creating a 'mini-Facebook' on your site.

Finally, when a post is made to a user's wall, there's 2 elements - 1 is the message itself, which you set in the JFBConnect Wall Posts configuration area. The 2nd is a description of the page that you're linking to. You can 'describe' the page to Facebook by using the Open Graph tags, which let you set the title, description, preferred image, or a slew of other things to let Facebook know how to represent that page in the wall. If the Open Graph tags aren't set, it will use the standard meta title/description from your page and 'guess' the best image. Additionally, Facebook only scrapes your site every 24-72 hours, so an update to the meta/Open Graph tags may not be shown in a wall post for a few days. You can use the linter to see what Facebook sees about your page:
developers.facebook.com/tools/lint/

You can specify Open Graph tags for your whole site in the Social tab of JFBConnect, and override the tags for specific pages by inserting {JFBCGraph description=my site} and {JFBCGraph title=My Better title}, etc on the page.

Hope this all helps, and good luck!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9754 by fb_100000552265523
Hi,

Great help and advice, thanks.

Understand the Facepile bit and will extend my site later to include Jomsocial for registartion avatars.

The page description was fixed by Facebook coming back and picking up the changed metadata description. Will just have to remember to have final format in a couple of days before we go live.

Still do not understand this login redirects. I cannot find any plugins that have 'login' in the title. Is this something in one of the Connect plugins?

I attach a screenshot so you can see what I have enabled. Would it help if I sent sent you my admin details so you can just take a quick look?

Many thanks, Mike.
The topic has been locked.
Support Specialist
15 years 1 month ago #9759 by alzander
Just so you know, when you use the Linter on your page, that seems to force the update in Facebook's system.. instead of waiting for them to come back and grab it. Good to know for any last minute changes on any key pages.

Admin credentials would be the easiest way for us to determine why the login message isn't being posted.. it's possible I'm going down the wrong avenue with my guesses about your user plugins. You can private message me using the Messages tab above.

No screenshot was attached- The system is wonky.. after you upload the photo, you then have to click on it to insert it into the post.

Thanks, and glad we're helping.. :)
The topic has been locked.
Support Specialist
15 years 1 month ago #9769 by alzander
Mike,
Glad we got in to look around. Nothing badly configured on your part, but we could definitely see the issue you were talking about where the "I just logged in" post wasn't being made to a users wall.

I'm not sure why your seeing this, and others aren't.. or they are and haven't noticed, but it has to do with the Auto-login Facebook Users. When we enable that setting (as you did) the login post wasn't being made. There's some other logic skipped there too that we'll need to fix.. but in general, I disabled that setting and the post is being made. For now, that's what I'd recommend. Hopefully this is a suitable, albeit temporary, fix.

I've added this to our tracker to be fully fixed in an upcoming release.

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

None
15 years 1 month ago #9771 by fb_100000552265523
Hi,

For me that login post going back out to all the users friends is a crucial element in spreading the word about our site. I am amazed that others have not noticed it not working.

For those users that keep the site tab open, is there a default logout period, i.e. they will always have to re-login periodically and hence spread the word about us?

Thanks, Mike.
The topic has been locked.