The idea is this: I'm trying to make a Java application that will see the friends of the specified user. But since without authorization, VC does not show the user's friends, I need to log in, get some authorization data, and then send a search request by users with this data. How can this be done? I watched Vk Api, but there apparently just uses the data of the incoming person.

I'm new to Java and programming in general, so please understand a bit :)

  • one
    Why not try to google - "vk api java". The first link in which people chew on Habré - habrahabr.ru/post/144813 What is the salt of the question? - Victor Perov pm
  • The @VictorPerov program with the habr does not work, as it has settled. - hello_max
  • First of all, we look at the VK API documentation on the site. There are examples. Section "Developers". - DimXenon

1 answer 1

VK uses OAuth 2 protocol for authorization, therefore you need to look for a java-implementation of the client of this protocol. I advise you to look at pac4j . It has the means for quick integration. But still, I strongly recommend that you first learn how OAuth 2.0 works OAuth 2.0