Sign Up With VKontakte
Sign In with VK (VKontakte) enables users to sign in to Apps using their VK accounts.
To complete this tutorial, you will need:
- An app created at Back4App
- Set up a Subdomain for your Back4app app
First of all, it’s necessary to make sure that you have an existing app created at Back4App. However, if you are a new user, you can check this tutorial to learn how to create one.
Create a new VK Application by going to VK Developers and clicking the Create app button
Fill up the Title and choose the Platform as Standalone app, then click the Connect app button
Choose a Category for your app and, if applicable, a Type of leaderboard, and Community. Click Save
Under the Settings tab of your VK Application, you will find your App ID, Secure key, and Service token among other useful info. Fill up your Website address and the Base domain for it. Save it.
Copy the App ID from your to use as the YOUR_CLIENT_ID and use your Website address as YOUR_REDIRECT_URI, and choose a scope to use in YOUR_SCOPE from the available options.
Then visit the following URL changing the parameters above:
It will ask you to log in to VK:
Alternatively, you can use the following CURL command to retrieve your token:
Run it and you should retrieve your access token:
REMEMBER: the code can be used only once. If you get an error or don’t use your token, you must re-generate your Code to be able to run it again.
In your Back4app App, go to Server Settings and open the VKontakte Login box
Fill up your Application Id and VKontakte Application Secret. Save it.
Now that the Sign-in with VK is configured, you can start the development process. The format for AUTHDATA is:
Here is the method for the iOS SDK:
And here for the Android SDK