Authorized access to Google/Facebook APIs

Hello,

Can the Google/FB authentication flow be used to not only identify the user but also to access Google/FB APIs respectively using Oauth2 grants? In particular I am interested in the user giving permission by logging in to their Google Ads and Facebook for Business APIs for analytics purposes.

I am new to Auth0 and while I have searched the docs and the forum I am unsure if the above scenario is supposed to be covered.

thank you

Hi @kjk,

Welcome to the Auth0 Community!

You can retrieve a user’s Identity Provider Access Tokens via the management API. These are the tokens issued directly from the IdP (e.g. Facebook).

It looks like the Facebook connection allows you to pass a Business Management scope that gives access to the “Business Manager API”. Is that the correct resource?

Google has an AdSense Management scope. Is that the correct resource?

Thank you Dan,
scopes seem to cover what I wanted!

1 Like

Great! Let us know how it goes!

It looks like the Facebook connection allows you t o pass a business management scope that gives access to the Business Meager API.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.