Yii2 login with Facebook?

Good day!

Use the module https://github.com/Nodge/yii2-eauth for authorization through social networks

I need to get from Facebook the link to the user profile, but Facebook does not request the link and even the user id does not give

for example, you can log into the demo:
nodge.ru/yii-eauth/demo2

and there is a user id of some left id and link type https://www.facebook.com/app_scoped_user_id/346534... where profile is not opened.
July 8th 19 at 16:03
3 answers
July 8th 19 at 16:07
There is also a graph Link fields it returns in this format
"link":"https://www.facebook.com/1091552020"

Besides, you get id of user from Facebook and in the right places can substitute where necessary. Just the module, to preserve the identity changes idisco, in order not to duplicate social networking and database.

I put this plugin and work with it often, what comes out? besides, look what you get for the data in the vendor in the service.
July 8th 19 at 16:05
yii2-user is much simpler
July 8th 19 at 16:09
If you want to understand authentication through Facebook is easier to write and understand how and what works. The Internet has a lot written on this(ruseller.com/lessons.php?rub=37&id=1670) and then step by step to disassemble what you have not written.

Find more questions by tags PHPFacebookYii