如何在windows phone 8.1 winRT中使用facebook初始化获取用户数据?

如何在windows phone 8.1 winRT中使用facebook初始化获取用户数据?,facebook,windows-phone-8,windows-phone-8.1,Facebook,Windows Phone 8,Windows Phone 8.1,我正在windows phone应用程序中开发facebook集成。我遵循了此链接 http://bsubramanyamraju.blogspot.in/2014/12/windowsphone-store-81-facebook.html?showComment=1444651733047#c5840217249397198715 在我的类文件中: class ContinuationManager { public void ContinueWith(IActiv

我正在windows phone应用程序中开发facebook集成。我遵循了此链接

http://bsubramanyamraju.blogspot.in/2014/12/windowsphone-store-81-facebook.html?showComment=1444651733047#c5840217249397198715
在我的类文件中:

class ContinuationManager
    {
        public void ContinueWith(IActivatedEventArgs args)
        {
            var rootFrame = Window.Current.Content as Frame;
            if (rootFrame == null)
                return;

            switch (args.Kind)
            {
                case ActivationKind.PickFileContinuation:
                    break;
                case ActivationKind.PickFolderContinuation:
                    break;
                case ActivationKind.PickSaveFileContinuation:
                    break;
                case ActivationKind.WebAuthenticationBrokerContinuation:
                    var continuator = rootFrame.Content as IWebAuthenticationBrokerContinuable;
                    if (continuator != null)
                        continuator.ContinueWithWebAuthenticationBroker((WebAuthenticationBrokerContinuationEventArgs)args);
                    break;
                default:
                    break;
            }
        }
    }

 interface IWebAuthenticationBrokerContinuable
    {
        void ContinueWithWebAuthenticationBroker(WebAuthenticationBrokerContinuationEventArgs args);
    }  
在上面的代码中,continuator获取null,因此下面的方法不调用

在我的主页中:

 public async void ContinueWithWebAuthenticationBroker(WebAuthenticationBrokerContinuationEventArgs args)
        {
            ObjFBHelper.ContinueAuthentication(args);
            if (ObjFBHelper.AccessToken != null)
            {
                fbclient = new Facebook.FacebookClient(ObjFBHelper.AccessToken);

                //Fetch facebook UserProfile:  
                dynamic result = await fbclient.GetTaskAsync("me");
                string id = result.id;
                string email = result.email;
                string FBName = result.name;

                //Format UserProfile:  
                GetUserProfilePicture(id);
                TxtUserProfile.Text = FBName;
                StckPnlProfile_Layout.Visibility = Visibility.Visible;
                BtnLogin.Visibility = Visibility.Collapsed;
                BtnLogout.Visibility = Visibility.Visible;
            }
            else
            {
                StckPnlProfile_Layout.Visibility = Visibility.Collapsed;
            }

Iam已成功登录,但未获取用户数据。我想获取用户数据。请任何人帮助我。

这里也有同样的问题。您应该在应用程序中标记页面:“
YourPageName:page,IWebAuthenticationBrokerContinuable”


你为我耍了把戏

您收到的数据是什么?有错误陈述吗?
结果的值是多少?您找到解决方案了吗?我也有同样的问题