aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/controllers/SocialLogin.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-11-07 20:28:53 +0300
committerGravatar Vitaly Takmazov2021-11-07 20:28:53 +0300
commitd1910811955a460d84b6f1a80b567fa7229bb44e (patch)
tree9ca8a8056953ad3cc82f32f280842e4f76574dd5 /src/main/java/com/juick/www/controllers/SocialLogin.java
parentab49119e4019aa7fe1956c73d2a35cbd286972e4 (diff)
Stop using version in Facebook Graph API requests
Diffstat (limited to 'src/main/java/com/juick/www/controllers/SocialLogin.java')
-rw-r--r--src/main/java/com/juick/www/controllers/SocialLogin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/controllers/SocialLogin.java b/src/main/java/com/juick/www/controllers/SocialLogin.java
index 7acd6cdd..f7148b2d 100644
--- a/src/main/java/com/juick/www/controllers/SocialLogin.java
+++ b/src/main/java/com/juick/www/controllers/SocialLogin.java
@@ -144,7 +144,7 @@ public class SocialLogin {
}
OAuth2AccessToken token = facebookAuthService.getAccessToken(code);
final OAuthRequest meRequest = new OAuthRequest(Verb.GET,
- "https://graph.facebook.com/v3.2/me?fields=id,name,link,verified,email");
+ "https://graph.facebook.com/me?fields=id,name,link,verified,email");
facebookAuthService.signRequest(token, meRequest);
String graph = facebookAuthService.execute(meRequest).getBody();
if (StringUtils.isBlank(graph)) {