0
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:facebook="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_horizontal"
    android:orientation="vertical"
    android:padding="20dp" >

    <com.facebook.login.widget.LoginButton

        android:id="@+id/fb_login_button"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp"
        facebook:confirm_logout="false"
        facebook:fetch_user_info="true" />

    <TextView
        android:id="@+id/user_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_margin="10dp"
        android:textSize="18sp" />

    <Button
        android:id="@+id/update_status"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="update_status" />

    <Button
        android:id="@+id/post_image"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="post_image" />

</LinearLayout>

this is my login page for face i am getting Error :

- error: No resource identifier found for attribute 'fetch_user_info' in package 
'com.example.facebookexmaple' 
 - error: No resource identifier found for attribute 'confirm_logout' in package 
 'com.example.facebookexmaple'

at <com.facebook.login.widget.LoginButton  

while I have already added library and facebook name space please tell me how to fix it.

meskobalazs
  • 15,741
  • 2
  • 40
  • 63
Research Development
  • 884
  • 1
  • 19
  • 39

1 Answers1

1

At First, add xmlns:fb="http://schemas.android.com/apk/res-auto" instead xmlns:facebook="http://schemas.android.com/apk/res-auto"

For demo please check Getting Started with the Facebook SDK for Android

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198