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.
source
share