Exemplo n.º 1
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            if(string.IsNullOrEmpty(kAppId))
            {
                throw new Exception("Your Facebook Application Id must be set before running this example. "
                                        + "See http://www.facebook.com/developers/createapp.php");
            }

            facebook = new FacebookSdk.Facebook(kAppId);

            DemoAppViewController vc = new DemoAppViewController(facebook);
            // If you have defined a view, add it here
            window.AddSubview(vc.View);
            window.MakeKeyAndVisible ();

            return true;
        }
Exemplo n.º 2
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            if (string.IsNullOrEmpty(kAppId))
            {
                throw new Exception("Your Facebook Application Id must be set before running this example. "
                                    + "See http://www.facebook.com/developers/createapp.php");
            }

            facebook = new FacebookSdk.Facebook(kAppId);

            DemoAppViewController vc = new DemoAppViewController(facebook);

            // If you have defined a view, add it here
            window.AddSubview(vc.View);
            window.MakeKeyAndVisible();

            return(true);
        }