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); }
This can happen due to the following reasons:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With