A
A
alestro2016-02-08 18:06:32
PHP
alestro, 2016-02-08 18:06:32

How to organize authorization through VK?

It is the organization of this issue that interests you, how to store authorized users in your table with users, or to constantly pull vk api methods?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Peter, 2016-02-08
@alestro

You create a separate table for information about users from social networks. networks.
authusers
id - received from VK
userid - your users.
And your table.
users
id - your user.
If the user first came to your site, then create an internal (your) user and an entry in authusers, where you link yours and from the social. networks.
Further you work, as with your normal user.
If the user logs in through the social. network, then check if there is one by VK-ID, get your user ID and then work with yours.

V
Vladislav Startsev, 2016-02-08
@esvlad

you create an additional field, you store the id there, but the rest is the same as with normal authorization

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question