Hi All,
I'm using my own LoginFacebookViewRenderer
to give ability users to authenticate with Facebook credentials.
`auth.Completed += (sender, eventArgs) =>
{
if (eventArgs.IsAuthenticated)
{
App.SuccessfulLoginAction.Invoke();
//// Use eventArgs.Account to do wonderful things
App.SaveToken(eventArgs.Account.Properties["access_token"]);
//// Use for store auth service name
App.SaveAuthService("Facebook");
Console.WriteLine("User authenticated");
}
else
{
// The user cancelled
}
};`
And in the App.cs
in shared project I've got this action which is fired when user is authenticated:
`public static Action SuccessfulLoginAction
{
get
{
return new Action(() =>
{
_NavPage = new Page();
_NavPage.Navigation.PushAsync(new ProfileView());
});
}
}`
Everythings works ok until this I call ProfileView
I set a breakpoint in, the constructor is fired, the breakpoint is reached but no content is displayed.
Here is a code of ProfileView
.
`public ProfileView()
{
Content = new Label
{
Text = "Profile View",
VerticalOptions = LayoutOptions.CenterAndExpand,
HorizontalOptions = LayoutOptions.CenterAndExpand,
};
}`
What did I missed?