0
我正尝试使用Sitecore Social Connected模块连接到我的Facebook帐户。登录后,我必须在我的网站上显示用户的详细信息。使用Sitecore SocialConnected模块获取用户详细信息
我用connectedUserManager.LogOnUser
和connectedUserManager.AttachUser
方法。但是,我的数据库没有得到更新的Facebook用户的详细信息。可能缺少什么?如何在使用Facebook凭证成功登录后检索用户信息。
const bool IsAsyncProfileUpdate = true;
const string ApplicationItemId = "{A9987983-D946-4E53-8FE4-1EB8BE650B43}";
ConnectUserManager connectUserManager = new ConnectUserManager();
if(!Sitecore.Context.User.IsAuthenticated) {
connectUserManager.LoginUser("Facebook",IsAsyncProfileUpdate, ApplicationItemId);
}
else {
connectUserManager.AttachUser("Facebook", IsAsyncProfileUpdate, ApplicationItemId);
}
你必须显示一些代码并阐述你的问题。我们如何才能帮助你就这样! –
const bool IsAsyncProfileUpdate = true; const string ApplicationItemId =“{A9987983-D946-4E53-8FE4-1EB8BE650B43}”; ConnectUserManager connectUserManager = new ConnectUserManager(); if(!Sitecore.Context.User.IsAuthenticated) { connectUserManager.LoginUser(“Facebook”,IsAsyncProfileUpdate,ApplicationItemId); } else { connectUserManager.AttachUser(“Facebook”,IsAsyncProfileUpdate,ApplicationItemId); } – Chandana
对不起,代码没有以正确的格式发布。这有什么意义吗? – Chandana