Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider

Anyone knows what does this error mean? I get it in LogCat shell every time I connect with my android application to Facebook (via emulator).

The code which in charge of authorize functionality:

@Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.authorize);     mPrefs = getPreferences(MODE_PRIVATE);     loginPref = PreferenceManager.getDefaultSharedPreferences(getBaseContext());     String access_token = mPrefs.getString("access_token", null);     long expires = mPrefs.getLong("access_expires", 0);     if(access_token != null) {         Singelton.mFacebook.setAccessToken(access_token);     }     if(expires != 0) {         Singelton.mFacebook.setAccessExpires(expires);     }      Singelton.mFacebook.authorize(this, new String[] {"email","user_birthday"}, new DialogListener() {         @Override         public void onComplete(Bundle values) {             SharedPreferences.Editor editor = mPrefs.edit();             editor.putString("access_token", Singelton.mFacebook.getAccessToken());             editor.putLong("access_expires", Singelton.mFacebook.getAccessExpires());             editor.commit();             SharedPreferences.Editor logEditor = loginPref.edit();             logEditor.putBoolean("login", true);             logEditor.commit();             addUser();         }          @Override         public void onFacebookError(FacebookError error) {             errorHandler();         }          @Override         public void onError(DialogError e) {             errorHandler();         }          @Override         public void onCancel() {             Log.d("MyApp", "Facebook cancel");         }     });  }  @Override public void onActivityResult(int requestCode, int resultCode, Intent data) {     super.onActivityResult(requestCode, resultCode, data);     Singelton.mFacebook.authorizeCallback(requestCode, resultCode, data); } 
like image 674
Rom Freiman Avatar asked Oct 01 '12 08:10

Rom Freiman


2 Answers

This can happen due to the following reasons:

  1. You are not connected to internet
  2. You have not given permission for internet access ( Manifest.xml)
  3. You have not used a correct hashkey for the app
  4. You did not provide a correct App Id
like image 187
AnhSirk Dasarp Avatar answered Oct 26 '22 16:10

AnhSirk Dasarp


It just means that you don't have the Facebook app installed on your phone. Don't worry too much about it.

The way the Facebook SDK for Android works is that whenever you need to make a request to Facebook, the SDK checks to see if the Facebook app is already installed on your device. If it is installed, the request is made through the app. If the app is not installed, it fetches the data by itself.

like image 41
Vinay S Shenoy Avatar answered Oct 26 '22 16:10

Vinay S Shenoy