Error compile in "Use Facebook Login example"

Pootree Kun picture Pootree Kun · Nov 22, 2012 · Viewed 24.8k times · Source

I'm trying to create the Login Application in this tutorial:

I'm getting this error in my logcat:

11-22 15:57:53.863: E/AndroidRuntime(816): com.facebook.FacebookException: Cannot use SessionLoginBehavior SSO_WITH_FALLBACK when com.facebook.LoginActivity is not declared as an activity in AndroidManifest.xml

Anyone know why?

Answer

Pratik Butani picture Pratik Butani · Jul 4, 2013

May you forgot to define Activity in your AndroidManifest.xml

<activity
    android:name="com.facebook.LoginActivity"
    android:label="@string/title_facebook_login" >
</activity>