facebooksitecorefacebook-c#-sdksitecore-social-connected

Facebook Login in sitecore


I am new to sitecore and currently working on it. I am not using the Social Connected module on sitecore for I don't have the module to install and I can't download it (I am using default modules and default sitecore. it was given to me by the company)

They have a requirement so that their website is facebook connected. I followed the tutorial in here and I can retrieve email address to register the new user with the site.

I tried to log-in in the site with given email from facebook, but I don't have any password so that I can't log in using the connected user.

My problem: How can I connect the sitecore log-in with facebook login? So that everytime a user log in to my site using facebook, it will be logged in automatically just like another user that use default membership on sitecore.

Thank you so much for your help.


Solution

  • This is exactly what the Social Connected module does... so I would really suggest you use that.

    But if that is totally out of the question, you can log in a Sitecore user by just its username like this:

    Sitecore.Security.Authentication.AuthenticationManager.Login("username_here");