File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
main/java/com/github/scribejava/apis
test/java/com/github/scribejava/apis/examples Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 55 * add Genius.com API authentication (OAuth2)
66 * fix GitHub API
77 * standardize authorization url generation for OAuth2
8+ * update Facebook to v2.6
89
910[2.5.3]
1011 * fix - do not send two Content-Type header in async requests
Original file line number Diff line number Diff line change 44import com .github .scribejava .core .model .Verb ;
55
66/**
7- * Facebook v2.5 API
7+ * Facebook v2.6 API
88 */
99public class FacebookApi extends DefaultApi20 {
1010
@@ -27,7 +27,7 @@ public Verb getAccessTokenVerb() {
2727
2828 @ Override
2929 public String getAccessTokenEndpoint () {
30- return "https://graph.facebook.com/v2.5 /oauth/access_token" ;
30+ return "https://graph.facebook.com/v2.6 /oauth/access_token" ;
3131 }
3232
3333 @ Override
@@ -37,6 +37,6 @@ public String getRefreshTokenEndpoint() {
3737
3838 @ Override
3939 protected String getAuthorizationBaseUrl () {
40- return "https://www.facebook.com/v2.5 /dialog/oauth" ;
40+ return "https://www.facebook.com/v2.6 /dialog/oauth" ;
4141 }
4242}
Original file line number Diff line number Diff line change 1717public abstract class FacebookAsyncExample {
1818
1919 private static final String NETWORK_NAME = "Facebook" ;
20- private static final String PROTECTED_RESOURCE_URL = "https://graph.facebook.com/v2.5 /me" ;
20+ private static final String PROTECTED_RESOURCE_URL = "https://graph.facebook.com/v2.6 /me" ;
2121
2222 public static void main (String ... args ) throws InterruptedException , ExecutionException {
2323 // Replace these with your client id and secret
Original file line number Diff line number Diff line change 1313public abstract class FacebookExample {
1414
1515 private static final String NETWORK_NAME = "Facebook" ;
16- private static final String PROTECTED_RESOURCE_URL = "https://graph.facebook.com/v2.5 /me" ;
16+ private static final String PROTECTED_RESOURCE_URL = "https://graph.facebook.com/v2.6 /me" ;
1717
1818 public static void main (String ... args ) {
1919 // Replace these with your client id and secret
You can’t perform that action at this time.
0 commit comments