Failed to find provider info for com.facebook.katana.provider.PlatformProvider
18,507
Solution 1
add permission of internet in menifest of your application
<uses-permission android:name="android.permission.INTERNET"/>
Solution 2
The issue for me was that that facebook app installed on Android was outdated and not consistent with my Facebook Android SDK.
Please look at this page: Developer Facebook and be sure that that the Facebook SDK is consistent with the Facebook app that installed on your Android.
Related videos on Youtube
Author by
Kostya Khuta
Updated on September 17, 2022Comments
-
Kostya Khuta over 1 year
I want to sign in to my app with Facebook, but I get next message to my Logcat:
Failed to find provider info for com.facebook.katana.provider.PlatformProvider
and launcher does not loading. I get my hash key like this.
My code is:
case R.id.btn_start_facebook: // callback when session changes state // start Facebook Login Session.openActiveSession(this, true, new Session.StatusCallback() { // callback when session changes state @Override public void call(Session session, SessionState state, Exception exception) { if (session.isOpened()) { // make request to the /me API Request.executeMeRequestAsync(session, new Request.GraphUserCallback() { // callback after Graph API response // with user object @Override public void onCompleted(GraphUser user, Response response) { if (user != null) { Log.d("myDebug", "Hello " + user.getName() + " user id = " + user.getId() + "!"); } else { Log.d("myDebug", "User is null"); } } }); } } });
-
Kostya Khuta over 10 yearsno, launcher does not open, i can not enter my email and password
-
Kostya Khuta over 10 yearsi have checked it. I have this in my Manifest
-
serge over 10 yearsdid you give permission for internet access in the manifest? Also where do you set app ID? Like activeSession = new Session.Builder(mainActivity).setApplicationId(appId).build();
-
Kostya Khuta over 10 yearsi make next <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id" />
-
Kostya Khuta over 10 yearsInternet permission is enabled
-
serge over 10 yearsYou have to make sure that add_id in your string resources is valid for the namespace.