简体   繁体   中英

How to get access token for facebook api when using Azure B2C and .NET Core 2.1

I'm creating a demo application in .NET Core 2.1, which uses Azure AD B2C to login with Facebook, all good there, however, I would like to get the facebook access token to be able to invoke facebook api, I thought it would be added to claims or at least have access to an event like OnAuthorizationCodeReceived, where you would retrieve the access tokens, though so far I see no way to do it. Is there any way to retrieve the facebook access token through azure b2c, if not, what would be the best recommended alternative?

Thanks.

看来现在可以使用Azure B2C作为声明获得身份提供者访问令牌,选中通过用户流将访问令牌传递到您的Azure Active Directory B2C中的应用程序

Currently, an access token from the external identity provider (eg Facebook) can't be passed through Azure AD B2C to your client application, ie this isn't a supported scenario as yet.

The only alternative is to implement a direct federation between your client application and Facebook.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM