As using the API to check whether the entered user community Vk/Facebook/Ok?

Planning to reward users that will enter into certain communities. For this we need to understand, did the user in the right community. The website will be posted the job. Any authorization through the site will not. Need to make a decision that the API will allow us to padding that has joined the user to the community or not.

1. Tell me, what are the solutions?
2. What will be the user ID and how we can verify the fact of entry into the community?
3. If there is an example of the implemented code, I would be very grateful.
July 2nd 19 at 13:58
2 answers
July 2nd 19 at 14:00
The question is, what can be the user ID if the job is offered to the visitor. Ie Site does not know of it in social media. - Anne_Stiedemann commented on July 2nd 19 at 14:03
July 2nd 19 at 14:02
It's called Social Lock, social. networks are not welcome. Usually done button like "Get a coupon via VC", the user clicks the button, then it sets your VK application (authorized through it), then you have the ID and the user token and you check the user's membership in the community. If alternative means of obtaining the ID of the user (clickjack), but they are punished very severely both from search engines and from the social. networks.
In General, the practice of Social Lock is questionable, I advise you to abandon it.
How can I make it so that the user joined the community.

Option 1. "Smart-ass". You have a closed community, in this post you coupons as soon as the user enters it, he gains access to the discount coupons. Some of the users leaves the community immediately after joining and gaining access to the coupons.

Option 2. "Right." Your community interesting. They have coupons, articles, good content about the products you sell. For example, makeup tutorials and cooking. For men work reviews, hacks, fun. Ie your community are professionally. This is an expensive option, but works well with decent offices. In such communities people often come in and sit there for years, invite them as friends. The website integrates with them by embedding posts on the product pages and widgets.

Find more questions by tags JavaScriptPHPVKontakteClassmatesFacebook