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
0
votes
0 answers

Cant share image using the FacebookDialog.PhotoShareDialogBuilder

I want to share an image from the device to facebook. I have searched over the internet and found several examples but all of them weren't using the latest facebook sdk. I followed the doc on the facebook developer's page. Here is my code: …
AabidMulani
  • 2,325
  • 1
  • 28
  • 47
0
votes
1 answer

HTTP 408 error happens, when uploading both a message and a photo using Android Facebook SDK

I want to upload both a message and a PNG image to the logged-in user's timeline using facebook sdk in android. The response rarely succeed, but failed in most cases. The error response is "Response: responseCode: 408, graphObject: null, error:…
0
votes
1 answer

Android: Facebook LikeView's session is not accessible

We are using LikeView provided in Facebook SDK. Initially when LikeView is tapped it asks for login and gets authenticated and shows me a window to like the object. But now when I try to access the session using Session.getActiveSession() it gives…
0
votes
1 answer

Logout facebook sdk android studio with slideMenu jfeinstein10

I've been looking for a solution for this about two days and cant seem to find it... I've triend lots of things I even created an Global class that can receive the session the user got when logging in but it doents work... when I set for example,…
Diogo Garcia
  • 536
  • 1
  • 8
  • 20
0
votes
0 answers

NPE getCount in Adapter when trying to get user albums using FB SDK

I am trying to get the users albums using the FB SDK. I have managed to log-in successfully and am able to retrieve the users profile picture and acquire an access token. I am following this answer here and am trying to get it to work, but I am…
Jack
  • 2,043
  • 7
  • 40
  • 69
0
votes
1 answer

OnSessionStateChange is called everytime user opens the app and he is already logged in

I am using fb SDK v2.2 for android and I followed the tutorial so I am not going to repeat the code here. I am using the loginbutton of Android sdk and I set the uiHelper to have a callback on session start like this uiHelper = new…
Snake
  • 14,228
  • 27
  • 117
  • 250
0
votes
1 answer

Inviting Facebook friends not using the app without Canvas implementation

My question is simple : I am developing an android game and I wish to implement a feature for signed in users(through fb) to invite those friends who are not signed into my app. The invitable friends api only workd if you have a canvas…
Rahul Verma
  • 2,140
  • 3
  • 21
  • 31
0
votes
1 answer

Storing data via facebook api

I'm developing a game (similar gameconcept as QuizClash) for android using the facebook sdk. The basic principle is like the following: Player A chooses a friend of his facebook friendslist to play with Player A answers three questions and waits…
0
votes
1 answer

Show friends of friends who have the app facebook sdk for android

I have an app, and I'd like to display a list of friends of friends who have the app. For example, if you have 10 facebook friends who have the app, and they have 100 friends each, I'd like to be able to display a list of 1000 people. How can I do…
johncorser
  • 9,262
  • 17
  • 57
  • 102
0
votes
2 answers

Android Facebook SDK - action.setPlace Error in Custom Stories in Andorid(Feed Dialog Method)

I am trying to post a FB Custom story in Android using Open Graph(Share Dialog Method). The code was working very well and posted successfully, until I had added action.setPlace(). Now the Share dialog is appearing correctly. But when I click the…
0
votes
1 answer

Facebook Insights dashboard is showing wrong app version on Most recently logged events after upgrade facebook-android-sdk

After I updated facebook-adroid-sdk from 3.7 to 3.20.0, Facebook Insights dashboard is showing versionCode from AndroidManifest.xml file instead the value from Settings.setAppVersion("version"). AppEventsLogger logger = logger =…
0
votes
1 answer

Facebook.apk emulator installation success but not displaying in emulator

I am following the directions from the facebook developer website regarding the download and installation of the Facebook apk on my emulator. The directions are as follows: Start your emulator Unzip the APK and in a Terminal window, run Mac: ./adb…
Brian
  • 7,098
  • 15
  • 56
  • 73
0
votes
1 answer

Trigger.io 's main activity

Does anyone know what is the main activity we should use when setting up a Facebook application that uses Trigger.io on Android? I guess it should be MainActivity but I'm not 100% sure. This is what FB is asking me…
Jaime
  • 153
  • 1
  • 1
  • 7
0
votes
0 answers

Sending Facebook Message Without Using Facebook App

Since I don't have Facebook App installed, I am not able to use the code below because, as I understand, FacebookDialog needs Facebook App. Is there any way to open this MessageDialog feature in the web browser without using Facebook…
Batuhan Tasdoven
  • 798
  • 7
  • 19
0
votes
1 answer

facebook sdk 3.15 set mandatory permissions

I search a mean to set permissions like email or user_friends mandatory. I use the facebook login button with the method setReadPermissions. Currently when i check permissions on my account for my app i get email et user_friends optional. Without…
WhatsUp
  • 453
  • 1
  • 5
  • 21