如何使用Azure AD B2C获取Facebook个人资料图片 [英] how to get Facebook profile picture using Azure AD B2C

查看:52
本文介绍了如何使用Azure AD B2C获取Facebook个人资料图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MSAL.js,并且可以使用Facebook作为身份提供者在Azure AD B2C中成功登录/注册用户.问题是登录后我无法检索用户的个人资料图片.

I am using MSAL.js and could successfully sign-in/sign-up users in Azure AD B2C using Facebook as identity provider. The problem is that after sign-in I cannot retrieve user's profile picture.

Azure AD B2C返回的对象标识符与用户的Facebook ID无关.

Azure AD B2C returns an object identifier which has no tie to user's Facebook id.

推荐答案

使用自定义策略,您可以检索Facebook用户的图片字段,然后在ID令牌中发出图片声明,如下所示.

Using custom policies, you can retrieve the picture field for the Facebook user and then issue a picture claim in the ID token, as follows.

1:完成 2:在

3:在

4:在

这篇关于如何使用Azure AD B2C获取Facebook个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆