I am developing a web application using a yii framework and implemented yii-user extension http://www.yiiframework.com/extension/yii-user/. I want to implement Facebook & Google Login but facing hard time in implementing them. Will OAuth work for FB and Google both? Please guide me on How to implement.
I have implemented it directly. The Facebook login jssdk allows you to login very rapidly. Plus while using an extension you have to worry about it being updated. Download the jssdk and include that file in the Yii. Initialise it. On click of the button on login call FB.login method. Get the callback, if logged in then all you need to do is send a request to your internal login method in UserIdentity or a custom one you might have created and you are done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With