× Joomla Facebook Connect support forum

Topic-icon Add JFBC Button to Joomla Login

Active Subscriptions:

None
11 years 3 months ago #29800 by planethop
When a user tries to login using the standard Joomla 1.5 login from this page using the Facebook login, the user is not logged in:
planethop.com/index.php?option=com_user&view=login&return

I never modifed any template files in com_user. If I have to modify a file, which one is it and what location do I add your code?
The topic has been locked.
Support Specialist
11 years 3 months ago #29813 by alzander
The Login with Facebook button is added there automatically with the setting in JFBConnect for "Integrate with Joomla login" (or something like that).

As for why it's not working, can you re-run Autotune, go to the FB App section, and hit "Refresh". See if the settings there are correct. Specifically, the app domain and Site URL should be:
Domain: planethop.com
Site URL: planethop.com/

When that page loads, the following Javascript message is put in the console:

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

That's an indication that your App isn't configured correctly or there's some other Facebook functionality going on. I don't see any other FB extensions on that page, so I'm assuming it's an App config issue.

Hope that helps, but let us know,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 3 months ago #29834 by planethop
I had disabled Content - JFBCContent, because I already have Facebook Like buttons on my Joomla K2 articles and thought that I would not need to enable this plugin. Also, my Article comments are being handled by StackIdeas Komento component. (Would the JFBCContent plugin interfere with the plugin likeplustweetinrespect.php which I am using for the Social posts icons like Facebook, Google, LinkedIn? That functionality still seems to be working with JFBC Content enabled.)

When Content - JFBCContent was enabled, I was able to login using a Facebook account from the JomSocial page (planethop.com/socialize).

Anyway, now what happens if a user who has logged into the site using Facbeook, after they logout and try to log back in, the Facbeook dialog popup comes up and quickly disappears. They are automatically logged into the site again. The only way to make this work again is to clear the browser cache. How can this be fixed? There may be some Javascript errors, possibly on planethop.com/socialize ?

Another issue that I am seeing.
1. When a user logins into my site using Facebook, he should be re-directed to his JomSocial Profile page. Now the user is always re-directed to:
planethop.com/post-an-auction?task=newauction

The above does not happen if a user logs into the site normally, without Facebook.

I can email a Facebook account to test with, if you would like?
The topic has been locked.
Support Specialist
11 years 3 months ago #29847 by alzander
From what you describe, you shouldn't need the JFBCContent plugin. It's useful for adding the Like/Comment features to articles or K2 content, but it sounds like you have that covered. As for conflicting with likeplustweetinrespect.php, it all depends on if that plugin is re-including the Facebook Javascript library. You'd want to open the HTML of any pages that that plugin fires on and search for "all.js". If that javascript file is being included twice, that could be a problem as it could re-initialize the Facebook library again and prevent JFBConnect form working properly on those pages.

There's no reason that the content plugin should enable logging in on the JomSocial page you reference. Frankly, it shouldn't even do anything on that page since it only should function on Joomla Articles or K2 Items, and that page is not from com_content or com_k2.

Anyway, now what happens if a user who has logged into the site using Facbeook, after they logout and try to log back in, the Facbeook dialog popup comes up and quickly disappears. They are automatically logged into the site again. The only way to make this work again is to clear the browser cache. How can this be fixed? There may be some Javascript errors, possibly on planethop.com/socialize ?

This is 100% normal behavior. If the user has already approved your Facebook Application and is already logged into Facebook, in another tab, they won't see the authentication popup, they'll just be logged in immediately. That's good since it's less to do to login to your site and is a feature. If you want, you can also log the user out of Facebook when they log out of your site from a setting in the JFBConnect - Configuration area. If they log out and hit the Login with Facebook button, they'll then see the email/password popup. They still *won't* see the App approval dialog to share their profile with your app since they've already done that.

As for the weird redirection, can you check what your "Returning User Redirection" setting is in the JFBConnect - Configuration area? It sounds like that may just be setup wrong.

Hope that helps,
Alex
The topic has been locked.