Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

granular_scopes added to DebugTokenInfo #1191

Merged
merged 1 commit into from Jan 11, 2022
Merged

granular_scopes added to DebugTokenInfo #1191

merged 1 commit into from Jan 11, 2022

Conversation

maxrasche
Copy link
Contributor

The /debug_token endpoint's response contains the field "granular_scopes" which is not mapped in FacebookClient.DebugTokenInfo:

"granular_scopes":[
  {
    "scope":"pages_show_list",
    "target_ids":[
      "{page-1-app-can-access-id}",
      "{page-2-app-can-access-id}"
    ]
  }
]

The target_ids field is ommitted if a user grants an app a specific permission in general and not for only a subset of possible Pages, Groups, Instagram Accounts, etc.

Graph API Docs: https://developers.facebook.com/docs/facebook-login/access-tokens/debugging-and-error-handling
Facebook Login Docs: https://developers.facebook.com/docs/facebook-login/permissions/overview#granularpermissions

@nbartels
Copy link
Contributor

Thanks for the PR. I have a look at this later on ...

@nbartels nbartels self-assigned this Jan 11, 2022
@nbartels nbartels added this to the 2022.2.0 milestone Jan 11, 2022
@nbartels nbartels merged commit aa4ecf8 into restfb:dev Jan 11, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants