How to get providerUserId by providerId, accessToken and secret? (Spring Social)
问题 In my application I can identify user by providerId and providerUserId. But initially, I have only following information: providerId, accessToken, secret. Thus, I need to acquire providerUserId by this information. I'm trying to use following code: ConnectionData connectionData = newConnectionData(providerId, accessToken, secret); ConnectionFactory<?> connectionFactory = connectionFactoryLocator.getConnectionFactory(providerId); Connection<?> connection = connectionFactory.createConnection