Simple check for the existence of the user (VK API)?
What is the easiest way on the backend to check whether correct data is coming from the app(IFRAME)?
More specifically — whether access_token of the user(viewer_id). And then I have discounts of app issues — don't want the substitution uid given a new discount.
Search on Google shows a bunch of options with authorization, but it is not quite that.
asked October 8th 19 at 01:16
uid is the id of the current user?
if Yes, then you can do the first request to the API at boot (there is direct contact there is a setting) for example like this:
then when you download have in the get['viewer_id'] real aydishnik.
Find more questions by tags VKontakteAPIPHP