Questions tagged [facebook-android-sdk]

The Facebook SDK for Android helps Android app developer implement Facebook functionality into their Android apps. Features include Facebook Login, Friend and Place pickers, session management, native object responses from the Graph API and Feed and Requests dialogs.

The Facebook SDK for Android provides Facebook support within Android apps. You can utilize Facebook Native Login, invoke Sharing, Game Requests and App Invites dialogs, and read and write data using the Graph API.

The SDK is open source and is available on GitHub.
The current SDK major version is 4. See the Getting Started guide..

Facebook SDK for Android Documentation

1843 questions
38
votes
3 answers

ASP.NET Web API and Identity with Facebook login

In the Facebook authentication flow for ASP.NET Identity, the Facebook OAuth dialog appends a code rather than an access token to the redirect_url so that the server can exchange this code for an access token via e.g.:…
37
votes
4 answers

When to request permissions with Facebook's new Android SDK 3.0?

With Facebook's new Android SDK 3.0 (that was released a few days ago), the process of authentication has changed. So how do you request a read permission such as "friends_hometown"? The following code is how I am trying to do it - but I'm quite…
caw
  • 30,999
  • 61
  • 181
  • 291
34
votes
4 answers

Is it possible to change Facebook login button image in Facebook Android SDK3?

Facebook Android sdk has a com.facebook.widget.LoginButton I want to put my own image for the Login button. Is it possible ? So far i've tried adding android:src="@drawable/facebook" to the layout file as an attribute to the button element with no…
Michael
  • 22,196
  • 33
  • 132
  • 187
34
votes
3 answers

Facebook SDK for Android duplicate support library on dependencies

I have implemented the new Facebook SDK 3.0 beta. The library project contains the Android support library v4. I also have the support library on my own proyect (a different version though). When I add the Facebook SDK as a library I get the next…
nsemeniuk
  • 1,171
  • 1
  • 13
  • 24
33
votes
14 answers

Android app Key Hash doesn't match any stored key hashes

I have an application on production on Play Store which uses a login with the Facebook SDK. When I debug the application from Eclipse there is no problem, but when its on production it gives me the following error after Facebook asks me for the…
Diego
  • 738
  • 1
  • 7
  • 19
32
votes
3 answers

Android Facebook SDK does not call callback after login

I am trying to make a class that handles Facebook logins in my application. My problem is it doesn't work on all activity. On that activity it doesn't call the callback. After the login and authorize application webview is dismissed, the callback…
skaciw
  • 325
  • 1
  • 3
  • 8
30
votes
10 answers

Android invalid key and Facebook Connect

When I try to implement Facebook Connect in my Android application, I get the following error. 11-02 16:41:31.660: D/Facebook-authorize(13194): Login failed: invalid_key:Android key mismatch. Your key "8Ioc4p/jMXoU9Lezug4nzmZfFUg" does not…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
30
votes
2 answers

Facebook authentication to my server using Android

I'm building an application with the following blocks: Android - Client Side, Java Servlets - Sever Side, Facebook app - used in order to authenicate users and work with their data. My Problem is the following: I would like to authenticate my…
Phil Woods
  • 331
  • 1
  • 3
  • 5
27
votes
7 answers

Get friend list facebook 3.0

I'm trying to obtain my friend list from facebook using new SDK(3.0). I'm facing problems related to what kind of params I need to insert in a Bundle and how to use newMyFriendRequest and GraphAPI. I didn't find on facebook documentation a place…
learner
  • 1,311
  • 3
  • 18
  • 39
26
votes
2 answers

moving android SDK installation folder

I have installed my Android SDK in Program Files (x86). But due to some reason I want to move it to D:. I want to ask if I can do that without altering my current projects on eclipse and will I have to reinstall my ADT plugins?? Thanks in advance
crack_addict
  • 653
  • 2
  • 8
  • 13
25
votes
17 answers

Failed to resolve: com.facebook.android:facebook-android-sdk:[4,5)

I am using facebook sdk in my project. Facebook SDK works fine till yesterday. but today when I open my project , the build failed and shows error as follows Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies…
Vinayak B
  • 4,430
  • 4
  • 28
  • 58
24
votes
2 answers

Prevent network requests from Facebook Android SDK

The Android Facebook SDK is always making a network request to graph.facebook.com when calling FacebookSdk.sdkInitialize(context) even if nothing of the SDK has been used yet. So if we're initializing it in the Application.onCreate() there will…
mbo
  • 4,611
  • 2
  • 34
  • 54
24
votes
2 answers

Facebook SDK 4.7.0 logs ClassNotFoundException for AppEventsLogger

I integrated the FB SDK in my Android app via Gradle for log-in and tracking events. Log-in works fine, but the logcat keeps showing me an exception every 15 seconds once I try to log an app event: D/com.facebook.appevents.AppEventsLogger: Got…
23
votes
6 answers

How to get Facebook photo, full name, gender using Facebook SDK android

I am working on an Android application in which any Android user who is logging to Facebook using our Application, I need to extract his photo, his gender, his full name from the Facebook. I am using Facebook SDK for this. With the help of Facebook…
arsenal
  • 23,366
  • 85
  • 225
  • 331
22
votes
3 answers

Package name & Class Name of facebook app

Just a small confusion I want to ask while making a facebook app to implement share feature in my android app Unique app Identifier used to open your app Package Name: Is it that unique identifier that I have written while creating the new…