2014-12-02 61 views
0

我已经安装了Facebook SDK并已设置登录,但我只是使用了我使用的按钮时所使用的基本按钮,它们是:Android - 已安装Facebook SDK但无法使用Facebook按钮

<com.facebook.widget.LoginButton 
android:id="@+id/facebook_button" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content"/> 

我得到这个运行时错误?

3650-3677/com.spencerfontein.ueat E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #3 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) 

不知道为什么会发生这种情况。有什么我失踪?

感谢您的帮助提前?

回答

1

我在我的Android的manifest.xml缺少此

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