CrossGeeks / FacebookClientPlugin

Facebook Client Plugin for Xamarin iOS and Android
MIT License
106 stars 32 forks source link

Facebook SDK not initializing. #36

Closed VikasPawar2112 closed 5 years ago

VikasPawar2112 commented 6 years ago

ISSUE : I am using Facebook plugin in my xamrin project, and it's giving me following exception.

Plugin Version : v1.4.0.

Exception : Unhandled Exception:

Xamarin.Facebook.FacebookSdkNotInitializedException: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.

Code Snippet :

  1. MainActivity.cs - i. onCreate() base.OnCreate(bundle); FacebookClientManager.Initialize(this);

ii. OnActivityResult() protected override void OnActivityResult(int requestCode, Result resultCode, Intent intent) { base.OnActivityResult(requestCode, resultCode, intent); FacebookClientManager.OnActivityResult(requestCode, resultCode, intent); }

  1. Manifest file : I have setup everything in the manifest file as show in documentation.

Can anyone tell me, why i am having this issue? Thank You!

Andre-Inklusion commented 5 years ago

I am having the same issue.

Did you find the cause?

hjorrip commented 5 years ago

Same issue here

rdelrosario commented 5 years ago

Closed since this should be fixed in most recent versions

JohnathanJohn commented 5 years ago

Facing the Same Issue. Any solution to this yet?

rdelrosario commented 5 years ago

Are you using latest version?

Whrothus commented 4 years ago

Had the same problem. fixed it did not read well

AndroidManifest.xml "Also define this within the application tag"

Did not do that in the tags Hope this helps