Android – unable to find provider information for com.facebook.katana.provider.platformprovider
•
Android
I want to log in to my application with Facebook, but I received the next message from logcat:
Failed to find provider info for com.facebook.katana.provider.PlatformProvider
And the initiator does not load. 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");
}
}
});
}
}
});
resolvent:
Add Internet permissions to the manifest for your application
<uses-permission android:name="android.permission.INTERNET"/>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码