Posted on: May 29, 2014 /
Hi all, I recently did a POC on facebook login. Here is my workaround. I used the Loginbutton Widget to login. first of all in linearlayout put this
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:fb="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content"> <com.facebook.widget.LoginButton android:id="@+id/connectWithFbButton" style="@style/com_facebook_loginview_default_style" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_gravity="center_horizontal" android:text="@string/connect_with_facebook" fb:login_text="@string/connect_with_facebook" fb:logout_text="Connecting with facebook" /> </LinearLayout> |
Then prefer using UiLifeCycleHelper as provided by Tapan In that you will find onSessionStateChanged method with three parameters
|
Session State FacebookException |
Now your Facebook Login is ready to
Read More →
1,714 total views, 1 views today