Nanfeng

Notes on software development, code, and curious ideas

Fixing an Android Facebook Login RuntimeException

Tapping Facebook Login crashed the app with java.lang.RuntimeException: Failure delivering result.

RuntimeException

The project used an incompatible target SDK configuration and retained another app’s Facebook values. Configure the current SDK as required by the Facebook SDK version, then add the correct values to app/res/values/strings.xml:

1
2
3
<string name="facebook_app_id">1234</string>
<string name="fb_login_protocol_scheme">fb1234</string>
<string name="facebook_client_token">56789</string>

The protocol scheme is fb followed by the app ID. Find the app ID on the Facebook app dashboard and the client token under App Settings → Advanced → Security.

App ID Client token
+