Example #1
0
        private void OnLoginClicked(object sender, EventArgs e)
        {
            FBShareDialogParams shareParams = new FBShareDialogParams ()
            {
                Link = NSUrl.FromString("http://touchin.ru/"),
                Name = "Touch instinct",
                Caption = "Greatest mobile apps for you",
                Description = "Touch instinct team work for you"
            };

            if (FBDialogs.CanPresentShareDialog (shareParams))
                PresentFacebookShareDialog (shareParams);
            else
                throw new Exception("Can't present share dialog"); // possibly there are no accounts
        }
Example #2
0
 private void PresentFacebookShareDialog(FBShareDialogParams shareParams)
 {
     FBDialogs.PresentShareDialog(shareParams, null, FBDialogAppCallCompletion);
 }