Forum is closed

Add JFBC Button to Joomla Login

Add JFBC Button to Joomla Login

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:
http://planethop.com/index.php?option=c … amp;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?

planethop
useravatar
Offline
49 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Add JFBC Button to Joomla Login

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: http://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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24059 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Add JFBC Button to Joomla Login

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 (http://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 http://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:
http://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?

planethop
useravatar
Offline
49 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Add JFBC Button to Joomla Login

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 http://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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24059 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11639
Total Polls:
0
Total Posts:
48894
Posts today:
11
User Info
 
Total Users:
47744
Newest User:
irishnet
Members Online:
2
Guests Online:
623

Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program