Closed DontBeEvilBen closed 4 years ago
Can you post the full stacktrace?
Hello, This is all I have: System.NullReferenceException Message=Object reference not set to an instance of an object.
I had tried downloading the code from GitHub and added it to my project. But I received the NotImplementedException error. How do I get you the full stacktrace?
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Rendy Del Rosario notifications@github.com Sent: Sunday, January 26, 2020 7:00:54 PM To: CrossGeeks/FacebookClientPlugin FacebookClientPlugin@noreply.github.com Cc: DontBeEvilBen benphung.1982@outlook.com; Author author@noreply.github.com Subject: Re: [CrossGeeks/FacebookClientPlugin] Error after calling CrossFacebookClient.Current.Logout() (#61)
Can you post the full stacktrace?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/CrossGeeks/FacebookClientPlugin/issues/61?email_source=notifications&email_token=AL4IQM5EBKBPHHL4HQ7CE6TQ7ZE6NA5CNFSM4KL2P43KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6GB3A#issuecomment-578576620, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL4IQM4VJ4U73FHQI4HTIZDQ7ZE6NANCNFSM4KL2P43A.
Can you reproduce this in the sample project?
On Sun, Jan 26, 2020, 11:35 PM DontBeEvilBen notifications@github.com wrote:
Hello, This is all I have: System.NullReferenceException Message=Object reference not set to an instance of an object.
I had tried downloading the code from GitHub and added it to my project. But I received the NotImplementedException error. How do I get you the full stacktrace?
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Rendy Del Rosario notifications@github.com Sent: Sunday, January 26, 2020 7:00:54 PM To: CrossGeeks/FacebookClientPlugin < FacebookClientPlugin@noreply.github.com> Cc: DontBeEvilBen benphung.1982@outlook.com; Author < author@noreply.github.com> Subject: Re: [CrossGeeks/FacebookClientPlugin] Error after calling CrossFacebookClient.Current.Logout() (#61)
Can you post the full stacktrace?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/CrossGeeks/FacebookClientPlugin/issues/61?email_source=notifications&email_token=AL4IQM5EBKBPHHL4HQ7CE6TQ7ZE6NA5CNFSM4KL2P43KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6GB3A#issuecomment-578576620>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AL4IQM4VJ4U73FHQI4HTIZDQ7ZE6NANCNFSM4KL2P43A
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CrossGeeks/FacebookClientPlugin/issues/61?email_source=notifications&email_token=AATOAJ3LFXU7CGNQIF5DLBDQ7ZJBDA5CNFSM4KL2P43KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6HCNA#issuecomment-578580788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATOAJZHHDSU5RI2O7WDC33Q7ZJBDANCNFSM4KL2P43A .
Hello, No. The sample project works very well. I can log in and out with no issues. I will see what are the differences between my project and the sample one.
Thank you.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Rendy Del Rosario notifications@github.com Sent: Monday, January 27, 2020 3:20:19 AM To: CrossGeeks/FacebookClientPlugin FacebookClientPlugin@noreply.github.com Cc: DontBeEvilBen benphung.1982@outlook.com; Author author@noreply.github.com Subject: Re: [CrossGeeks/FacebookClientPlugin] Error after calling CrossFacebookClient.Current.Logout() (#61)
Can you reproduce this in the sample project?
On Sun, Jan 26, 2020, 11:35 PM DontBeEvilBen notifications@github.com wrote:
Hello, This is all I have: System.NullReferenceException Message=Object reference not set to an instance of an object.
I had tried downloading the code from GitHub and added it to my project. But I received the NotImplementedException error. How do I get you the full stacktrace?
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Rendy Del Rosario notifications@github.com Sent: Sunday, January 26, 2020 7:00:54 PM To: CrossGeeks/FacebookClientPlugin < FacebookClientPlugin@noreply.github.com> Cc: DontBeEvilBen benphung.1982@outlook.com; Author < author@noreply.github.com> Subject: Re: [CrossGeeks/FacebookClientPlugin] Error after calling CrossFacebookClient.Current.Logout() (#61)
Can you post the full stacktrace?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/CrossGeeks/FacebookClientPlugin/issues/61?email_source=notifications&email_token=AL4IQM5EBKBPHHL4HQ7CE6TQ7ZE6NA5CNFSM4KL2P43KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6GB3A#issuecomment-578576620>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AL4IQM4VJ4U73FHQI4HTIZDQ7ZE6NANCNFSM4KL2P43A
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CrossGeeks/FacebookClientPlugin/issues/61?email_source=notifications&email_token=AATOAJ3LFXU7CGNQIF5DLBDQ7ZJBDA5CNFSM4KL2P43KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6HCNA#issuecomment-578580788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATOAJZHHDSU5RI2O7WDC33Q7ZJBDANCNFSM4KL2P43A .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/CrossGeeks/FacebookClientPlugin/issues/61?email_source=notifications&email_token=AL4IQM6K7RWZGEGSQHTC433Q727PHA5CNFSM4KL2P43KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ7E63Q#issuecomment-578703214, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL4IQM42VITIZ6KIRW3Q2NTQ727PHANCNFSM4KL2P43A.
From what I can tell, the only difference is that I call the Facebook graph API to get the user data instead of using "await CrossFacebookClient.Current.RequestUserDataAsync" as the Sample Project does. Any idea what is null??? I did try to remove the app from facebook and log in again. The result is the same.
I got it to work... I missed a couple of things on the android project. I followed the steps in this article and things are working now!!! https://www.xamboy.com/2018/03/26/facebook-client-plugin-for-xamarin/
If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin: 2.2.1 Device Tested On: Galaxy Note 9 Simulator Tested On: Galaxy Note 9 Version of VS: 16.2.3 Version of Xamarin: Xamarin.Forms 4.4.0.991477 Versions of other things you are using:
Steps to reproduce the Behavior
Step 1: Call await CrossFacebookClient.Current.LoginAsync(new string[] { "public_profile", "email" }); to login with Facebook Step 2: Call CrossFacebookClient.Current.Logout(); to lot out of with Facebook Step 3: Call await CrossFacebookClient.Current.LoginAsync(new string[] { "public_profile", "email" }); again to login with Facebook again
Expected Behavior
It should log me back in and get user's profile information from Facebook as it did on step 1.
Actual Behavior
NullReferenceException happens. Details: System.NullReferenceException Message=Object reference not set to an instance of an object.
Note that CrossFacebookClient.Current is NOT null. So something in the LoginAsync() is using a null object.
Code snippet
Screenshotst