Topic-icon Auto-login feature??

Active Subscriptions:

None
14 years 3 months ago #19667 by branic
Auto-login feature?? was created by branic
So I am using JFBConnect with a site that is only used as a canvas app. I have it set to auto-login but the user has to login a first time before this will work. With other facebook apps it just automatically ask the user to allow the app. Is this possible with JFBConnect? Am I missing a setting somewhere?

Thanks
-Brandon
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19688 by mtk
Replied by mtk on topic Auto-login feature??

branic wrote: So I am using JFBConnect with a site that is only used as a canvas app. I have it set to auto-login but the user has to login a first time before this will work. With other facebook apps it just automatically ask the user to allow the app. Is this possible with JFBConnect? Am I missing a setting somewhere?

Thanks
-Brandon

Hello Brandon,
the whole idea of registration is to first have a user triggering this action. you cannot force a user to be registered to your site.
the auto-login option is there for the second login, where the site already 'knows' the user, and has its Joomla User mapped with his FB User. then when that user gets to the site (again) and the user is already connected to his FB User the site can automatically logged him in.

Hope that clarifies things for you.

Mati
The topic has been locked.
Support Specialist
14 years 3 months ago #19714 by alzander
Replied by alzander on topic Auto-login feature??
Just to follow-up on what Mati said.. The automatic login-popup that you see on other sites are when you've followed a post from within Facebook. If you go directly to the App page that would normally log you in by clicking through a post or timeline feed, it won't ask to auto-log you in.

With that said, you can enable Authenticated Referrals for any links within Facebook that lead to your Canvas Application. When enabled, the user will have to authenticate (login) before using your app. You can enable Authenticated Referrals by going into your Facebook Application configuration, going to the Settings -> Auth Dialog section and turning it on in the bottom.

We haven't tested this with Auto Login Facebook Users mode of JFBConnect.. it's something we're evaluating for our 4.2 release, so any experience you have with it would be appreciated. Depending on how Facebook performs the login process, it may not automatically create the user. If that's the case, we can likely help you to 'force' that for now, until it's properly implemented in 4.2.

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

None
14 years 3 months ago #19768 by Johnson
Replied by Johnson on topic Auto-login feature??
Hello alzander,

I am also having a problem with this, and would appreciate a workaround that would automatically create a Joomla user upon the user's first facebook login.
I actually have it working this way with a different facebook plugin on another site.

Thanks and regards.
The topic has been locked.
Support Specialist
14 years 3 months ago #19769 by alzander
Replied by alzander on topic Auto-login feature??
Johnson,
If you set the "User Creation" mode of JFBConnect to "Facebook User Only", that will create a user account in Joomla the first time the user clicks the "Login With Facebook" button. If you're using the Canvas and have the Authenticated Referrals enabled, that's the only time the user may not be created automatically, but that's not a common usage of JFBConnect. If so though, let us know.

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

None
14 years 3 months ago #19796 by Johnson
Replied by Johnson on topic Auto-login feature??
Hello Alzander,

Thanks for your prompt reply.
That worked, thanks, except that when I view the activation e-mail that is sent, the password field is blank, and I can't login to the site with an empty password.

Kind regards.
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19798 by mtk
Replied by mtk on topic Auto-login feature??

Johnson wrote: Hello Alzander,

Thanks for your prompt reply.
That worked, thanks, except that when I view the activation e-mail that is sent, the password field is blank, and I can't login to the site with an empty password.

Kind regards.

Hello,
the activation email is sent by the component that actually does the user registration. this could be either Joomla, CB, JomSocial or any other user management component you might have installed/activated on your site.

we suggest you try to temporarily do a user registration directly through the user management component, and see if the activation email is send with a valid password.

Mati
The topic has been locked.
Support Specialist
14 years 3 months ago #19801 by alzander
Replied by alzander on topic Auto-login feature??
Johnson,
I think I know what you're talking about. When you use the "Facebook User Only" mode of JFBConnect, a Joomla user is created without a password. The only way for this user to log in (at that time) is with their Facebook credentials. They can use the "Forgot Password" link to get a new one if they'd like to login without using Facebook credentials.

We're looking into, for the 4.2 release, an option for the admin to set which will generate a random password for the user. That way, when the user returns, they can login with either Facebook credentials or Joomla ones.

Hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21293 by blobgf
Replied by blobgf on topic Auto-login feature??
hi, currently my website is built with joomla 1.7 + jomsocial 2.4, in my FB app setting, i have the Authenticated Referrals enabled, but it will not trigger the Auth Dialog when a user refers to my page from a facebook story (an open graph action story), i guess it's because of the authentication JFBConnect is using (ref: developers.facebook.com/docs/authentication/server-side/), so no matter existing or new users, they must login to my page through your "FBConnect" button.

i wonder if this could be solved/updated in your version 4.2? and when will it be released exactly? it's april now, thanks.
The topic has been locked.
Support Specialist
14 years 2 months ago #21316 by alzander
Replied by alzander on topic Auto-login feature??
BGF,
We've helped a few users get Authenticated Referrals working to automatically log the user's in with the current 4.1.x series of JFBConnect. The upcoming 4.2 will make it even easier to implement. In some cases, depending on your configuration of things, will work automatically, but in others, there will be a few minor code changes to get Authenticated Referrals fully working.

Either way, we'll gladly help how we can with either the 4.1 release or 4.2, if you're interested. You will need to be an active subscriber to get the latest updates as well as for us to provide the priority support it would take to help you get things going.

Hope that helps,
Alex
The topic has been locked.