Users Pricing

forum

Home Forums Spring social Facebook oauth - getting not all data with api v2.5 – MindStick

Spring social Facebook oauth - getting not all data with api v2.5

Anonymous User 1895 11 Dec 2015
I am trying to implement facebook oauth using Spring Social, as a part of it I call the following uri

https://www.facebook.com/v1.0/dialog/oauth?client_id=12345678900&response_type=code&redirect_uri=http://some_uri.com&success_url=some_uri.com&error_url=some_uri.com&scope=email%2C+user_birthday

And I get the token just fine. However, when I try

Facebook facebookTemplate = new FacebookTemplate(accessToken);
FacebookProfile facebookProfile = facebook.userOperations().getUserProfile();
The api returns the full facebook profile with all the data (email, link etc) only in case if I've configured my app to use Facebook app in developers console which uses api 2.3. As for today the up-to-date version of api which is used by all newly created apps in the console is 2.5. In case I use newly created app with api 2.5 it returns not all data - basically only user name and id are present. I use Spring social facebook version 1.1.1.RELEASE and Spring social 1.1.0.RELEASE

Can I specify some parameter or update libraries or code, so that I get all the data using newly created apps with api version 2.5?

1 Answers

Anonymous User 11 Dec 2015 Accepted Answer
Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md