Sharedialog Dismiss Immediately
I 'm trying to add a ShareFacebook button in my android app. The code works when I use my FB account, the one I used with Facebook Developer Console and I can share the link on my
Solution 1:
Have you found any stack trace? You must look if you have initialized facebook SDK or not
FacebookSdk.sdkInitialize(getApplicationContext());
callbackManager = CallbackManager.Factory.create();
shareDialog = newShareDialog(this);
// this part is optional
shareDialog.registerCallback(callbackManager, newFacebookCallback<Sharer.Result>() { ... });
and if it is showing, and dismissing, then there must be
<providerandroid:authorities="com.facebook.app.FacebookContentProvider{APP_ID}"android:name="com.facebook.FacebookContentProvider"android:exported="true"/>
Post a Comment for "Sharedialog Dismiss Immediately"