将LinkedIn与Monotouch集成

时间:2013-04-24 08:33:37

标签: xamarin.ios linkedin

我在LinkedInMonotouch集成时出现问题。我已成功使用Logged In Session集成Facebook,如下所示:

internal void SaveAuthorization ()
        {
            var defaults = NSUserDefaults.StandardUserDefaults;
            defaults ["FBAccessTokenKey"] = new NSString (facebook.AccessToken);
            defaults ["FBExpirationDateKey"] = facebook.ExpirationDate;
            defaults.Synchronize ();
        }

或使用like:

    public class SessionDelegate : FBSessionDelegate 
        {
            FacebookLoginViewController container;

            public SessionDelegate (FacebookLoginViewController  container)
            {
                this.container = container;
            }

            public override void DidLogin ()
            {
                container.ShowLoggedIn ();
                container.SaveAuthorization ();
            }
            public override void DidLogout ()
            {
                container.ClearAuthorization ();
                //container.ShowLoggedOut ();
            }

            public override void DidNotLogin (bool cancelled)
            {
                // TODO: Implement - see: http://go-mono.com/docs/index.aspx?
link=T%3aMonoTouch.Foundation.ModelAttribute
            }

            public override void SessionInvalidated ()
            {
                // TODO: Implement - see: http://go-mono.com/docs/index.aspx?
link=T%3aMonoTouch.Foundation.ModelAttribute
            }
        }

现在我想对LinkedIn使用相同的内容。我怎么能完成它。?

提前致谢

0 个答案:

没有答案