Skip to content

Commit

Permalink
Update Facebook Graph API version
Browse files Browse the repository at this point in the history
Update to v14 of the API from v11 as the latter goes out of support in September.
  • Loading branch information
martincostello committed Aug 30, 2023
1 parent f5ce6e8 commit be766f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ public static partial class AuthenticationBuilderExtensions

if (IsProviderEnabled(name, options))
{
builder.AddFacebook()
builder.AddFacebook((p) =>
{
p.AuthorizationEndpoint = "https://www.facebook.com/v14.0/dialog/oauth";
p.TokenEndpoint = "https://graph.facebook.com/v14.0/oauth/access_token";
p.UserInformationEndpoint = "https://graph.facebook.com/v14.0/me";
})
.Configure<FacebookOptions>(name);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
},
{
"comment": "Token resource for Facebook login",
"uri": "https://graph.facebook.com/v11.0/oauth/access_token",
"uri": "https://graph.facebook.com/v14.0/oauth/access_token",
"method": "POST",
"contentFormat": "json",
"contentJson": {
Expand All @@ -114,7 +114,7 @@
},
{
"comment": "User information resource for Facebook login",
"uri": "https://graph.facebook.com/v11.0/me",
"uri": "https://graph.facebook.com/v14.0/me",
"ignoreQuery": true,
"contentFormat": "json",
"contentJson": {
Expand Down

0 comments on commit be766f1

Please sign in to comment.