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
22
votes
3 answers

StatusCallback not called after requestNewReadPermissions then requestNewPublishPermissions

I am developing an Android App that integrates with Facebook. I would like to: Let the user login with Facebook Get the user's email address on Facebook (could be a proxied email address, which is fine) Post to the user's wall/timeline on his/her…
Pang
  • 9,564
  • 146
  • 81
  • 122
21
votes
4 answers

Finding What the Android Facebook SDK Version Is

How do I find out the version of the current SDK is installed or referenced by my application? I have looked through the class files and the manifest but there is no reference as to what version it is. Thanks in advance.
StuStirling
  • 15,601
  • 23
  • 93
  • 150
20
votes
2 answers

Share on facebook page throwing an error

When I'm sharing on Facebook page, getting following error : (#100) Only owners of the URL have the ability to specify the picture, name, thumbnail or description params. It was working fine 5-10 days ago. When searched I found following on…
20
votes
2 answers

java.exe finished with non-zero exit value 2 when using Facebook SDK

When I try to compile my app I get a following error Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program…
20
votes
5 answers

Get Read and Publish Permissions in one request

Before you all say it's not possible, open up the Spotify app and hit the signin with Facebook button. I'm wondering how they did it, and how I can get "publish_stream" and basic permissions/email in one request. Also, is it possible for me to…
20
votes
4 answers

Android Facebook api 3.0 error: Cannot call LoginActivity with a null calling package

I am trying to integrate an android app with the the new facebook 3.0 api, but I get this exception: java.lang.RuntimeException: Unable to resume activity {dk.imu.konnekt/com.facebook.LoginActivity}: com.facebook.FacebookException: Cannot call…
Morten Holmgaard
  • 7,484
  • 8
  • 63
  • 85
20
votes
7 answers

android facebook sdk - Session: an attempt was made to reauthorize a session that has a pending request

Been banging my head agains the facebook-sdk-for-android-wall for the last couple of days now and need help. I can't find what's wrong, what I should do instead or how to check for some state that I'm missing. My Android app is recording tracks and…
Cliffhanger
  • 1,057
  • 1
  • 9
  • 18
20
votes
5 answers

Could not find Facebook SDK.apk

Hey I know this was asked before, but none of the solutions seem to help. This is NOT a duplicate I have used the Facebook SDK before on an earlier project, now I started a new one and I get this weird error. I have set a reference to the…
eric.itzhak
  • 15,752
  • 26
  • 89
  • 142
19
votes
4 answers

Access user email using new Facebook Android SDK

Hi I'm playing with new Facebook Android SDK. One thing I could not figure out is how can I ask for email address. I tried following but it returned values for all fields except email address. I guess I probably have to ask permission separately for…
Mohammad Haque
  • 565
  • 1
  • 7
  • 16
17
votes
1 answer

Custom Facebook login button image in Facebook Android SDK 3.5

In a similar vein to this queston related to Facebook Android SDK 3.0 ... Is it possible to use my own image for the Facebook login button in SDK 3.5, without customising the SDK itself? Using the answer given in the linked…
Jon G
  • 1,656
  • 3
  • 16
  • 42
17
votes
6 answers

Android: Facebook get "User Access Token", on successful login

I have been doing some login project via Facebook latest SDK i.e. 3.0. I'm getting a hard time in getting user access token. I have searched on the internet and all, maximum results were using the old SDK. Here is some bits of code which I have…
Anupam
  • 3,742
  • 18
  • 55
  • 87
17
votes
4 answers

Error on using proguard with Android Facebook sdk 3.0

Warning: I removed a lot of "old text" to keep the question more clean. Just check the history if needed. I'm using proguard to both shrink and obfuscate an app that uses the facebook sdk 3.0 (I'm using the sdk-version-3.0.2.b tag). I'm not using a…
borges
  • 3,627
  • 5
  • 29
  • 44
16
votes
3 answers

Android Facebook Video Upload Error Using Android API 4+

I have this code, after logging in to Facebook, I want to upload selected video to Facebook through Facebook Android SDK v4.13.1, Problem: The response looks OK to me, but the video is not showing in the Test User's Timeline. Code: public void…
Nadeem Iqbal
  • 2,357
  • 1
  • 28
  • 43
16
votes
4 answers

Looking for android Facebook SDK examples

I've looked all over the internet and can't seem to find what i'm looking for... I'm just trying to find a site with some examples on how to use the OFFICIAL facebook android SDK http://github.com/facebook/facebook-android-sdk To be specific i'd…
brybam
  • 5,009
  • 12
  • 51
  • 93