forum

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

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

Anonymous User 1494 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?

Updated on 11-Dec-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By