Wednesday, 15 August 2012

android - Error compile in "Use Facebook Login" SDK -



android - Error compile in "Use Facebook Login" SDK -

i have followed facebook "use facebook login" tutorial

however, when load app , click on "login" "com.facebook.facebookexception: cannot utilize sessionloginbehavior sso_with_fallback when com.facebook.loginactivity not declared activity in androidmanifest.xml" error.

i have added activity in androidmanifest.xml file.

<?xml version="1.0" encoding="utf-8"?>

<uses-sdk android:minsdkversion="14" android:targetsdkversion="17" /> <uses-permission android:name="android.permission.internet" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.zwopper.loginactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name="com.zwopper.mainactivity" android:label="@string/app_name" > </activity> <meta-data android:value="@string/app_id" android:name="com.facebook.sdk.applicationid"/> </application>

anyone know problem?

(i have added *app_id* string res/values/strings.xml, net permission, com.facebook.sdk.applicationid meta data)

thanks.

define activity in mainfest

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

android facebook login sdk

No comments:

Post a Comment