Facebook Login Button crashing app without error message

This issue suddenly popped up this morning after working great for weeks.

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); setContentView(R.layout.activity_login); callbackManager = CallbackManager.Factory.create(); LoginButton loginButton = (LoginButton) findViewById(R.id.authButton); loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { Log.d("Facebook Login Status", "success!"); } @Override public void onCancel() { Log.d("Facebook Login Status", "Canceled!"); } @Override public void onError(FacebookException exception) { Log.d("Facebook Login Status", "Failed!"); } }); }

Somewhere in there, the app crashes. None of the callback methods are run, and nothing is printed to logcat. I just see a loading spinner for a split second and then the app force closes with no message.


I did find this log actually, but I don't know what it means.

04-24 15:44:56.787 1753-1753/com.android.systemui W/ResourceType: No package identifier when getting value for resource number 0x00000000 04-24 15:44:56.788 1753-1753/com.android.systemui W/PackageManager: Failure retrieving resources for com.devon_dickson.apps.oncampus: Resource ID #0x0


The same was happening to me, so I started from scratch with another Activity and slowly duplicated the new activity till it matched the one that was breaking. In short, it was nothing to do with the Activity but the Android Manifest.

In my Android Manifest, I had android:noHistory="true" on my LoginActivity which was crashing my app. Once I removed it then it worked again.


  • How can i find my current login status - facebook API android
  • Logi analytic integration with rails application for single sign on
  • Facebook Login CallbackManager FacebookCallback not called?
  • Facebook Android SDK 4.0+ user_location?
  • git log doesn't show commit, but git log shows commit that edited the file
  • How to change text of facebook button in Facebook sdk 4.7.0 android
  • eclipse ubuntu 18.04 installation java.lang.ClassNotFoundException:
  • Unable to get friend list from Facebook in Android. Getting blank array with count
  • Installing Twain Module on Python 3.4 on Windows
  • Facebook Share from my app
  • Flex and Salesforce connection: NOT ABLE TO login from flex to salesforce
  • R How to update a column in data.frame using values from another data.frame
  • How do I read an objects key in an indexeddb autoincrement objectstore, given an index
  • Updating an LP_c_ubyte buffer created in a C DLL
  • Context sensitive SDK help in MonoDevelop
  • StorageMetadata' has no member 'downloadURL' [duplicate]
  • Android HTTP-post AsyncHttpClient
  • The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first
  • When try to execute a cgi script, get the error: “[WinError 193] %1 is not a valid Win32 application
  • NHibernate Validation Localization with S#arp Architecture
  • how to do an event when i swipe from fragment to the other
  • Update CALayer sublayers immediately
  • JFileChooser in front of fullscreen Swing application
  • Can a Chrome extension content script make an jQuery AJAX request for an html file that is itself a
  • Upload files with Ajax and Jquery
  • jquery mobile loadPage not working
  • How to delete a row from a dynamic generate table using jquery?
  • json Serialization in asp
  • AngularJs get employee from factory
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • Proper way to use connect-multiparty with express.js?
  • JTable with a ScrollPane misbehaving
  • How to stop GridView from loading again when I press back button?
  • unknown Exception android
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • failed to connect to specific WiFi in android programmatically
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • How can I use threading to 'tick' a timer to be accessed by other threads?