From 4154de0a73f06a225ec89bd828d571d0ff496f82 Mon Sep 17 00:00:00 2001 From: Craig Walls Date: Thu, 9 Aug 2012 10:29:35 -0500 Subject: [PATCH] Set OAuth2Template to use parameter-based client authentication (see SOCIAL-320) since Facebook does not yet support the spec-recommended HTTP Basic client authentication. --- .../social/facebook/connect/FacebookOAuth2Template.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-social-facebook/src/main/java/org/springframework/social/facebook/connect/FacebookOAuth2Template.java b/spring-social-facebook/src/main/java/org/springframework/social/facebook/connect/FacebookOAuth2Template.java index d45690af..22f3bc0f 100644 --- a/spring-social-facebook/src/main/java/org/springframework/social/facebook/connect/FacebookOAuth2Template.java +++ b/spring-social-facebook/src/main/java/org/springframework/social/facebook/connect/FacebookOAuth2Template.java @@ -36,6 +36,7 @@ public class FacebookOAuth2Template extends OAuth2Template { public FacebookOAuth2Template(String clientId, String clientSecret) { super(clientId, clientSecret, "https://www.facebook.com/dialog/oauth", "https://graph.facebook.com/oauth/access_token"); + setUseParametersForClientAuthentication(true); } @Override