How to connect facebook to Yii user extension?

I am developing a web application using the yii infrastructure and implementing the yii user extension http://www.yiiframework.com/extension/yii-user/ . I want to implement Facebook and Google Login, but I have difficulties in implementing them. Will OAuth work for FB and Google? I ask you to instruct on how to implement.

+5
source share
3 answers

I implemented it directly. Facebook login jssdk allows you to log in very quickly. Plus, using the extension, you need to worry about updating it. Download jssdk and include this file in Yii. Initialize it. When clicking the button when calling the method of calling FB.login. Get a callback if you are logged in, then all you have to do is send a request to your internal login method in UserIdentity or the user one you may have created and you're done.

+3
source

this extension provides facebook, google, in the same way. transparent for your application.

https://github.com/christiansalazar/crugeconnector

+1
source
0

All Articles