R
R
Roman Vasilenko2012-08-24 16:17:40
In contact with
Roman Vasilenko, 2012-08-24 16:17:40

Does VKontakte have an analogue of Facebook's User.third_party_id?

Hello!

There is a task: to uniquely link a VKontakte user to an account in your own system. The use of the user ID is not allowed because it is available to other users and anyone, knowing the user ID, will be able to access his account.

On Facebook, there is a User.third_party_id parameter unique for each user, which can be obtained only for the user who was authorized.

How can you identify a VKontakte user without resorting to using his public ID? And, if it can't be done this way, are there other options?

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Vasilenko, 2012-08-27
@farewell

In general, I solved the problem as follows:
1. The client application performs OAuth authorization in order to obtain an access token.
2. The access token is sent to our internal server, which accesses VKontakte and receives the user ID from the access token.

@
@antoo, 2012-08-24
_

In our project, we use their Open API for authorization , or rather its VK.Auth method . We store the user ID in the database, because requests are signed using md5 - it is impossible to change them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question