gpt4 book ai didi

asp.net-mvc - 从 ASP.NET MVC 5 中的 Facebook v2.4 API 访问 OAuth ExternalLoginCallback 中的电子邮件地址

转载 作者:行者123 更新时间:2023-11-30 05:14:38 25 4
gpt4 key购买 nike

<分区>

使用 v2.3 的 Facebook API,如果设置了以下内容,用户的电子邮件地址将在回调到 ExternalLoginCallback 时返回;

app.UseFacebookAuthentication(new FacebookAuthenticationOptions
{
AppId = "XXX",
AppSecret = "XXX",
Scope = { "email" }
});

但是,任何只能以 v2.4(7 月 8 日发布)为目标的应用程序不再将电子邮件地址返回到 ExternalLoginCallback

我认为这可能与列出的 v2.4 更改有关 here ;

Declarative Fields

To try to improve performance on mobile networks, Nodes and Edges in v2.4 requires that you explicitly request the field(s) you need for your GET requests. For example, GET
/v2.4/me/feed
no longer includes likes and comments by default, but GET /v2.4/me/feed?fields=comments,likes will return the data. For more details see the docs on how to request specific fields.

我现在如何访问此电子邮件地址?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com