Y
Y
yomanx2017-06-27 00:05:11
In contact with
yomanx, 2017-06-27 00:05:11

Main game mechanics and their implementation?

Good day,
Of course, I thought that FB had terrible docks, but VK outdid it.
A number of questions have accumulated over which the caliper has been answering for months without giving adequate answers.
I will be glad to receive answers from Gurukod...
1. SENDING GIFTS TO FRIENDS. (REQUESTS)
Our request:

VKRequest * request = [VKRequest requestWithMethod:@"apps.sendRequest"
parameters:@{@"user_id":friendID,
@"type":@"request",
@"text":[NSString stringWithFormat:@"Take some %@!", gift],
@"name":gift}];

QUESTION: Now, I want to receive this gift on the second device from the second account.
How can I ask if there is a gift for me?
Do I need to delete it later myself, or does it delete itself?
*In FB there are methods for receiving a gift, and in the docks of VK - EMPTY !! No explanation, no example, nothing.
2. IMPLEMENTATION OF THE POSITION OF FRIENDS on the game map, (frames with portraits on the levels)
We make it based on the secure.setUserLevel method, I try to send:
VKRequest * request = [VKRequest requestWithMethod:@"secure.setUserLevel"
                                                parameters:@{@"user_id":[VKSdk accessToken].userId, @"client_secret":@"1ec522291ec522291ec52229831e99a45211ec51ec5222947941781275765f2557b047c", @"level":@"1"}];

QUESTION:
And we get an error: User authorization failed: client_secret is incorrect
WHY IS THE SECRET NOT CORRECT?
Although the secret in the code is from the Application's Personal Account... it's hard to make a mistake...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question