× Joomla Facebook Connect support forum

Topic-icon CB login still required after Facebook Connecting

Active Subscriptions:

None
13 years 8 months ago #4339 by nikkia
Hello,
I run a classifieds site and am very excited about your component being integrated into our site. Up until now we've used Community Builder as the component to handle logins and profiles etc, but I'd like to shift the login to being JFBConnect focused. The ads component is called AdsManager and it requires a login in order to post an ad. The problem I'm facing is that after logging in via Facebook Connect, a user is still required to register and login in with a username/pw in order to post an ad, thereby defeating the convenience I was hoping to provide. I am happy to take CB out of the equation if need be, so long as users can have full functionality of the classifieds component using JFBConnect.
Thanks in advance.

If you wish to see what I mean, the test site is www.carnivaljunction.com/costumes/index.php
The topic has been locked.
Support Specialist
13 years 8 months ago #4342 by alzander
JFBConnect allows for 'silent' registration where it basically pops up the Facebook login window, lets the user approve your site, and then JFBConnect creates the username and imports their data to CB behind the scenes without asking the user for a username, password and email address. You shouldn't need to disable CB at all to get what we think you're looking for up and running.

If you're using JFBConnect 3.x, read the "User Creation" section of this page. You would want the "Facebook User Only" option:
www.sourcecoast.com/jfbconnect/docs/configuration-guide

If you're using JFBConnect 2.x, check out the "Create New Joomla Users" setting on this page. You'd want "No":
www.sourcecoast.com/jfbconnect/docs/configuration-guide

The settings are the same, just better titles and descriptions in the 3.0 version. That also means if you are on 2.x, it should be a seamless upgrade path.

We use 3.0 on this site and use the Facebook User Only option so that people can get in quickly and make their purchase without having 2nd thoughts :D
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4346 by nikkia
Thanks for the quick reply.
I am using 3.x on the site and with the configuration option set to "Facebook User Only" I get the following error if I try to login using Facebook Connect:

This e-mail is already registered. If you forgot your password, click on the Forgot your password link and a new password will be sent to you.
The topic has been locked.
Support Specialist
13 years 8 months ago #4355 by alzander
When we import the account from Facebook, we use the email address from Facebook to populate Joomla's user table. If that email is already taken, the account creation will fail because Joomla won't create it. There's not much we can do about this.

We do have the ability to let an existing Joomla user associate their account with a Facebook account. They do this by logging in to their Joomla account and then logging in with Facebook. 3.0 gives some extra options to allow or not allow mapping to existing users.

Hope this helps clarify, and if you have any suggestions on how to improve the account creation process, we're all ears.
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4365 by nikkia
Ok, so does that mean I could avoid this error message if I deleted all the existing accounts from my CB user database? I don't really mind that option because I think my users will be happy to switch to the FB login.

Also, right now when someone logs in using the normal username/pw fields, the page redirects to the homepage minus the necessary "index.php" so it just takes you to a broken link page. Where is that redirect controlled from? Is there a master setting somewhere for what the homepage is?

Thanks for your help so far, I greatly appreciate such quick and thorough support and should be all set up soooon!
The topic has been locked.
Support Specialist
13 years 8 months ago #4369 by alzander
No problem about the support. It's our job, and what you pay for. Thank you for your patience and helping us solidify the 3.0 release!

Yes, you could avoid this if you deleted the users in CB. That could cause problems with existing classified ads as they won't be tied to an owner, so I don't want to lead you down the wrong path to cause you other problems. As an alternative, we could help you add a few lines of code to change that error to say something like:
"The email associated with this Facebook profile is already used on this site. Please log in with that account and then use the Facebook connect login button to join those accounts".. or something similar. If you'd rather just blow the users away, that's certainly easier for us :)

The login address in the JFBCLogin module is set as a parameter in the login module itself. On this site, we actually leave it as the default "--Select Item--" which leaves the user on the same page they tried to log in with. Otherwise, you should be able to set it to something else and get it to redirect properly there.. if not, you know where to find us.. :D
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4385 by nikkia
Hi again. I fixed that redirect problem by setting up a redirect in my control panel but now I have a totally different login problem.
When a user enters their username/pw the page just refreshes without logging them in or giving any kind of error message.

Also, is there a way for the module to update someone's FB status when they join but not each time they log in?

Thanks.

www.carnivaljunction.com/costumes to see what i mean. it happens even if you try logging without entering a username/pw
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4390 by nikkia
Eek, I'm sorry to pile on the questions, but another hath arisen...

Regarding the "Like" module, is there a way so the "likes" connect to a FB Fan Page as opposed to the application page? This would mean both that when a user clicks "like" that it registers on the Fan Page and that when user who've "liked" are listed on my site it will show those that have "liked" our Fan Page, not our App Page.

Thanks!
The topic has been locked.
Support Specialist
13 years 8 months ago #4394 by alzander
Status Updates: If you put a blank message in the "Login Status Message:" box, it shouldn't update their status on login and only on registration. Guess we could make that clearer.

Refreshing on login: When I click the FB Connect button, I'm getting the login pop-up with the following error:
Application Unavailable
The application you are trying to access is unavailable or restricted.

This can be caused by a few things, including Facebook disabling your account for some reason. It also could be an invalid API/Secret Key and Application combination, or other configuration issues. We'd suggest creating a new 'dummy' application with all the basic settings from our configuration guide. Then, try those keys temporarily to see if it works. If so, try to make sure the settings from your dummy and 'real' application are as similar as possible and try again. If that doesn't work, you may need to contact Facebook.
The topic has been locked.
Support Specialist
13 years 8 months ago #4398 by alzander
We'll do some more testing with the Like button to see what we can do about replacing the App ID with a page ID. Off the top of my head, I didn't even think it uses the App ID, so not sure what's up with that.

Just to confirm, you're seeing this behavior with the JFBCLike module, correct?
The topic has been locked.