android facebook

Remove LoginActivity from Manifest – Facebook SDK for Android 3.0

I notice that Facebook SDK 3.0 has to have the LoginActivity declaration in Manifest file.

<activity android:name="com.facebook.LoginActivity"
android:label="@string/app_name" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/applicationId" />

If it’s not there, the below exception is thrown.

com.facebook.FacebookException: Cannot use SessionLoginBehavior SSO_WITH_FALLBACK when com.facebook.LoginActivity is not declared as an activity in AndroidManifest.xml

It seems a bad practice when Facebook SDK has to depend on this declaration. I wonder if there is a way to remove it from Manifest file.

About the applicationId missing, I can pass it in code by modifying some functions, LoginButton constructor and Session constructor.