public App() { if (Application.Current.Properties.ContainsKey("Id")) { isLoggedIn = true; } else { isLoggedIn = false; } InitializeComponent(); users = new GoogleUsers(); Device.SetFlags(new[] { "SwipeView_Experimental" }); if (isLoggedIn) { MainPage = new AppShell(); } if (!isLoggedIn) { MainPage = new FacebookLoginPage(); } }
private async void FbLogin() { if (_isConnected) { var fbPop = new FacebookLoginPage(); await PopupNavigation.Instance.PushAsync(fbPop, true); } else { await _dialogService.DisplayAlertAsync("Connectivity Issues", "Your device is not connected to the internet!", "OK"); } }
static void Main(string[] args) { FacebookLoginPage login = new FacebookLoginPage(); login.WaitForComplete(); //xhpc_message login.LogOn("*****@*****.**", "2Winter*8"); //hasText = somePage.ContainsText("Dixin"); login.ClearCache(); login.ClearCookies(); //https://www.facebook.com/groups/1698197500455137/yourposts/ //TO COMMENT: //get permalink????? //comment id //add_comment_text }
public void GivenILoginViaFacebook() { _facebookLoginPage = _loginPage.LoginViaFacebook(); }