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
16
votes
1 answer

Android & Facebook SDK : decoding pictures from /me/picture graph call

EDIT: Anwser at the end of this post. I am trying to get a Facebook user's profile picture thanks to the inbuilt Facebook SDK's function Request(). I am using a /me/picture call to get the profile picture and convert it into a Bitmap. The call is…
16
votes
0 answers

How to Integrate Facebook Connect with Android

How to integrate Facebook Connect and API with Android Application?
MAkS
  • 751
  • 3
  • 10
  • 19
16
votes
1 answer

Facebook sdk get users phone number or Address?

I think i dug through the whole facebook sdk documentation but can't seem to find the way to get the users Phone number or Address. Is this feature removed, as of spoken in this thread where it's suggested it will be re-enabled in a few weeks…
16
votes
14 answers

Error inflating class com.facebook.widget.LoginButton

I have built a Facebook integration using the steps from the 3.0 documentation. It works fine in when I deploy the app to my phone using Eclispe; however, when I export the app to upload it to the store and side load the apk, it fails with the…
Toby Jones
  • 353
  • 2
  • 5
  • 13
15
votes
4 answers

facebook api version used in facebook android sdk

I'm getting the following alerts on Facebook Developers: 'MyApp currently has access to Graph API v2.2 which will reach the end of its 2-year lifetime on 27 March, 2017. To ensure a smooth transition, please migrate all calls to Graph API v2.3 or…
Fran
  • 616
  • 4
  • 17
15
votes
7 answers

Android facebook login not working with installed Facebook app

I have set up simple facebook login. For Android 2.3.6 everything works as should, user gets prompt login dialog, enters data and app goes on. I thought that it was android versions fault but it turs out that the login isn't working when there is…
Karlis
  • 1,501
  • 4
  • 19
  • 31
15
votes
8 answers

How to get facebook profile picture of user in facebook SDK 3.0 Android

i am using facebook SDK 3.0 i have to get profile picture of user login. Here is the code I use: URL image_value = new URL("http://graph.facebook.com/"+id+"/picture"…
Arun
  • 307
  • 1
  • 6
  • 12
15
votes
6 answers

Retrieve profile picture using Facebook SDK 3.0 for Android

I've following problem with Facebook SDK 3.0 for Android. I wanna get my (and my friends) profile picture without using their ProfilePictureView widget, so if I use Graph Explorer I see that Json response is: { "data": { "url":…
Giulio Bider
  • 1,386
  • 2
  • 10
  • 20
15
votes
2 answers

New Facebook API 3.0. and ActionBarSherlock compatibility

I'm reading facebook Android API 3.0 documents, and I do not understand what does session has to do with background activities. In all examples I'm supposed to extend "FacebookFragment". Well, that would be nice if my whole app is not extending…
Balkyto
  • 1,460
  • 4
  • 22
  • 47
14
votes
2 answers

Enabling Chrome Custom Tabs for Facebook login using Android SDK

I am using Facebook SDK version 4.11.0 in my app. As per the steps outlined on the Official docs page, I have added following things inside manifest file to enable Chrome Custom Tabs.
14
votes
4 answers

Android Facebook SDK 4.0 Login without Facebook App

I'm having issues with the webview login for Facebook on Android. I've followed the tutorials and login works perfectly when the user has the Facebook app installed. When the Facebook app is not installed, the webview for facebook login pops up;…
sihrc
  • 2,728
  • 2
  • 22
  • 43
14
votes
2 answers

Official Facebook examples crashes (GraphApiSample)

I started to work with facebook-android-sdk-3.5.2. The SDK project also contains varius sample examples for using the api like: HelloFacebookSample: A simple activity you can log in and do stuff, it works great. Next thing i wanted to try the next…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
14
votes
6 answers

Using share dialog in Android Facebook SDK. How to know is user actually shared or cancelled sharing activity?

I have added sharing functionality to Android app as described here https://developers.facebook.com/docs/android/share-dialog/#setup But I have noticed that if user is cancelled sharing activity onComplete is called anyway @Override protected void…
14
votes
2 answers

call finish() from static method

I am using the Facebook Android SDK and want to close my Activity after a user logs in and gets the user object. In practice I am storing parts of it but I want to close the activity regardless. // make request to the /me API …
CQM
  • 42,592
  • 75
  • 224
  • 366
14
votes
5 answers

Android FB API 3.0 - set permissions only once

I'm trying to figure out how new API works, so I've managed to understand the concept, and managed to do my own "hello world", that log on to facebook, log out and try to upload image. Now in both HelloFacebookSample and SessionLoginSimple, there is…
Balkyto
  • 1,460
  • 4
  • 22
  • 47