In my application first I login with Facebook. In the middle off the application I have tried this example FriendPickerSample
but I did't get the friends list:
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.karme/com.karme.newswire.Buddies}:
com.facebook.FacebookException: Cannot use SessionLoginBehavior
SSO_WITH_FALLBACK when com.facebook.LoginActivity is not declared as
an activity in AndroidManifest.xml
If I place the below code in manifest. It's not logging in to Facebook:
<activity android:name="com.facebook.LoginActivity"
android:label="@string/app_name" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/applicationId" />
Pleasea check out Facebook developer doc for android
They Provide Tutorial to access your fried list,How to get the User basic information,Get the profile picture of current logged in user etc etc...
Give Brief explanation of your question, also mention what you had tried till now..??
You forgot to add the com.facebook.LoginActivity
activity to AndroidManifest.xml.
You need to add this to your manifest :
<activity
android:name="com.facebook.LoginActivity"
android:label="@string/title_facebook_login" >
</activity>
Also check that you followed the steps on the "Create a new Android Project with Facebook Login" section , specially those regarding adding the app_id string to res/values/strings.xml, the INTERNET permission, the com.facebook.sdk.ApplicationId Meta Data, and finally the mentioned LoginActivity.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.