-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Checklist before submitting a bug report
- I've updated to the latest released version of the SDK
- I've searched for existing Github issues
- I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- I've read the Code of Conduct
- This issue is not security related and can safely be disclosed publicly on GitHub
Java version
11
Android version
API 35
Android SDK version
35
Installation platform & version
18.0.3
Package
Login
Goals
Refresh Gaming Graph access token using AccessToken.refreshCurrentAccessTokenAsync().
Expected results
Token should be refreshed successfully with updated expiration time and permissions.
Actual results
Fails with error:
{
"errorCode": 100,
"subErrorCode": 33,
"errorType": "FacebookApiException",
"errorMessage": "Unsupported get request. Object with ID 'graph' does not exist, cannot be loaded due to missing permissions, or does not support this operation"
}
Steps to reproduce
Login with Gaming permissions (gaming_profile)
Obtain a Gaming Graph access token (graphDomain = "gaming")
Call AccessToken.refreshCurrentAccessTokenAsync()
Code samples & details
AccessToken.refreshCurrentAccessTokenAsync(object : AccessToken.AccessTokenRefreshCallback {
override fun OnTokenRefreshed(accessToken: AccessToken?) {
Log.d("Test", "Success: $accessToken")
}
override fun OnTokenRefreshFailed(exception: FacebookException?) {
Log.e("Test", "Failed: ${exception?.message}")
}
})
Gaming Graph API (graph.fb.gg) does not support batch requests
Single GraphRequest → Success
GraphRequestBatch with 1 request → Success
GraphRequestBatch with 2 requests → Fails
AccessTokenManager.refreshCurrentAccessTokenImpl() sends 2 requests as batch, which fails for Gaming tokens.