Skip to content

Commit a6e1cb9

Browse files
committed
update Facebook to v2.6
1 parent 4e2a9a1 commit a6e1cb9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
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

scribejava-apis/src/main/java/com/github/scribejava/apis/FacebookApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.github.scribejava.core.model.Verb;
55

66
/**
7-
* Facebook v2.5 API
7+
* Facebook v2.6 API
88
*/
99
public 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
}

scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
public 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

scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public 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

0 commit comments

Comments
 (0)