Skip to content

Commit

Permalink
Upgrade to Facebook Graph API 2.8
Browse files Browse the repository at this point in the history
v2.8 will be available till April 18, 2019 so users will have enough
time to upgrade to version 3 of Spring Social with support of the most
up to date Facebook API version

Fixes spring-attic#241 and spring-attic#217
  • Loading branch information
alek-sys committed Apr 24, 2018
1 parent 12ef093 commit 072a4e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ public String getAbout() {
* The user's bio.
* Available only with "user_about_me" permission for the authenticated user.
* @return the user's bio, if available.
* @deprecated this field is deprecated in Facebook API and always returns null, use the {@link #getAbout()} field instead.
*/
@Deprecated
public String getBio() {
return bio;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public interface UserOperations {
*/
PagedList<Reference> search(String query);

static final String[] PROFILE_FIELDS = {
"id", "about", "age_range", "bio", "birthday", "context", "cover", "currency", "devices", "education", "email",
String[] PROFILE_FIELDS = {
"id", "about", "age_range", "birthday", "context", "cover", "currency", "devices", "education", "email",
"favorite_athletes", "favorite_teams", "first_name", "gender", "hometown", "inspirational_people", "installed", "install_type",
"is_verified", "languages", "last_name", "link", "locale", "location", "meeting_for", "middle_name", "name", "name_format",
"political", "quotes", "payment_pricepoints", "relationship_status", "religion", "security_settings", "significant_other",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class FacebookTemplate extends AbstractOAuth2ApiBinding implements Facebo

private String applicationNamespace;

private String apiVersion = "2.5";
private String apiVersion = "2.8";

/**
* Create a new instance of FacebookTemplate.
Expand Down

2 comments on commit 072a4e3

@keyuls
Copy link

@keyuls keyuls commented on 072a4e3 May 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alek-sys when will the new release version 2.0.4 available with these changes?

@alek-sys
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I can decide on that, this is a maintainers call. I'll try to have a chat with Craig if this can be merged and official 2.0.4 can be release. Meanwhile you might want to use something like Jitpack to get this version directly from Github. Please note this is NOT an official 2.0.4 version of the library!

Please sign in to comment.