Yes. It's pretty simple once you find the right documentation. Just make sure you have an https cert on your site, and then create your app and get your ID at https://developers.facebook.com/
FB.Init is a part of the function FacebookSignIn() and is only called when FacebookSignIn() is called. I include it in my "Layout.js" / master layout so it is possible for the user to login from any page.
Login with Facebook
Hello Can anyone help me get a basic member login with facebook working on an Umbraco 7 site please?
I’m looking for code examples.
Cheers
Paul
Hi Paul... Here is mine:
First, you will need this link:
Code
}
Thanks Graham Is it that simple then?
Yes. It's pretty simple once you find the right documentation. Just make sure you have an https cert on your site, and then create your app and get your ID at https://developers.facebook.com/
I am using it here: http://zbestpartners.com
Hi Graham.
I guess you would have to run
FB.init() and FacebookSignIn()
on every single page request?Do you know any way to use it with document protection?
FB.Init is a part of the function FacebookSignIn() and is only called when FacebookSignIn() is called. I include it in my "Layout.js" / master layout so it is possible for the user to login from any page.
I couldn’t get it to work by just adding the script to my master view. I guess I need more details on how to get it to work.
Have you created your app at facebook and have they "approved" it.
you may also have to modify function (loginResponse)….
I am capturing the data they return and storing it to a database.
you can change it to this to see if you are getting any data back:
If you are not getting back data, check your app settings at facebook.
I am also assuming there aren't any difference between the US and UK.
Hi Paul!
Just following up. Were you able to get it to work the way you needed?
Graham
Hi Graham
Thank you so much for your effort to help me.
I wasn't able to get it working with what you gave me, but I was able to get it working by using the firebase auth with facebook libraries.
I might blog about it one day, but I'm just glad I got it to work.
Cheers
Paul
Hey Paul,
Glad you got it working. Wondering if there may be difference between the US and UK.
Be sure to "tag me" if you are attending the Umbraco Festival in Chicago this April.
Graham
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.