M
M
Mikhail Smirnov2016-06-07 16:47:06
Facebook
Mikhail Smirnov, 2016-06-07 16:47:06

Yii2 authorization through facebook?

Good afternoon! I use the https://github.com/Nodge/yii2-eauth
module for authorization through social networks , I need to get a link to the user profile from the social network, but Facebook does not give the link and even does not give the user id. For example, you can log in to the demo: nodge. ru/yii-eauth/demo2 and there, instead of the user id, some left id and a link like https://www.facebook.com/app_scoped_user_id/346534... which does not open the profile.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Greg Popov, 2016-06-07
@Gregpopov

yii2-user, much easier

A
Anton Natarov, 2016-06-07
@HanDroid

There is also a graph fields Link, it returns this format
. In addition, you get the user id from Facebook and you can substitute it where necessary in the right places. It's just that this module, to save identity, changes the ID, in order not to get duplicates on social networks and in the database.
I installed this plugin and work with it often, what exactly doesn't work for you? besides, see what you get for the data in the vendor in service.

S
Sergey Okhonko, 2016-09-13
@sersergei

If you want to understand Facebook authentication, it’s easier to write yourself and understand how and what works. There is a lot written about this on the Internet ( ruseller.com/lessons.php?rub=37&id=1670) and then step by step to disassemble what is written wrong with you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question