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

Facebook login: Show Activity after login

currently I work with the Facebook SDK for Android. I programmed a Facebook login for my app like described in this official tutorial: Facebook Login for Android. This works fine. The idea of this approach is that you have a Main Activity and two…
0
votes
1 answer

HashKey for Facebook Authentication

Every Android app you'll create will be signed, and you will need to register each app's key hash with Facebook as a security check for authenticity. keytool -exportcert -alias androiddebugkey -keystore "C:\Users\DELL.android\debug.keystore" |…
saravanan
  • 5,339
  • 7
  • 45
  • 52
0
votes
1 answer

Issue with app activities flow using Facebook SDK for Android

I'm following the Facebook tutorial on how to implement the Facebook Login flow to my Android app. It works fine with UiLifecycleHelper and Session implementations: private UiLifecycleHelper uiHelper; private Session.StatusCallback callback = …
Blackecho
  • 1,226
  • 5
  • 18
  • 26
0
votes
0 answers

Facebook Graphs API returns session invalid

I would like to use Facebook Graph API in my android app. I'm trying to see if I can log in to Facebook using an Access Token which never expires, but my code always return Session is Invalid. Could somebody tell me what I'm doing wrong in the…
0
votes
0 answers

Getting Email Id from Facebook in Android

How to get Email id from facebook.I got all other info from following code but i want to get User email id but it does not retrieve user email. @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub …
Nain Kazi
  • 191
  • 1
  • 11
0
votes
1 answer

Android: Facebook SDK Tutorial Step 3c friend list not appearing

I am completing the facebook android sdk tutorial at: https://developers.facebook.com/docs/android/scrumptious/show-friends everything was working great until i got to Step3c. it runs but when i click the button and it brings up a view the view is…
user3064141
  • 407
  • 4
  • 17
0
votes
1 answer

how can i send metadata programmatically in android?

i'm using facebookSDK to share text and images, but i need to send the app_id as parameter programmatically and not from the AndroidManifest.xml ... any suggestions ?
Javier
  • 23
  • 2
  • 9
0
votes
1 answer

What is this piece of code doing?

I got this from https://developers.facebook.com/docs/android/login-with-facebook/v2.1 Basically it relates to the login process private void onClickLogin() { Session session = Session.getActiveSession(); if (!session.isOpened() &&…
committedandroider
  • 8,711
  • 14
  • 71
  • 126
0
votes
1 answer

Sharing link over facebook 'applicationId' cannot be null

I'm trying to implement a Facebook share dialog in my app that will share my own app on Facebook. I downloaded facebook SDK and imported it in Android Studio. This is how I'm trying to do it. First I followed these steps: uiHelper = new…
Guy
  • 6,414
  • 19
  • 66
  • 136
0
votes
0 answers

Cant submit apps facebook's approval

Trying to submit Android apps for Facebook's approval before we submit to Play Store. Our apps were created by third party and we would like to transfer the apps to our FB account before we submit to FB. So we created a new FB account. But FB keeps…
0
votes
0 answers

Android, Facebook and key hashes, how does it work?

When releasing my first android app using the facebook sdk, what are all the steps involved to get it working? The process is confusing me, the Key Hashes in particular. 1. Take the App ID from my facebook App and put it into my…
0
votes
0 answers

How connect facebook user with users in my database

I'm implementing facebook login in my mobile application. I was wondering how connect FB user with my database user, let's see this scenario: First log in in my app with FB Login After log in with fb, my application makes request to web api, checks…
user1483208
  • 385
  • 5
  • 24
0
votes
0 answers

Facebook sdk 3.8.0. for android after re-login Request.newMeRequest returns user that is null; java.net.SocketException: Socket is closed

I am developing an android application which has been using the Facebook sdk for 5 months now. Everything used to work fine until I logged out on a new device that had been successfully logged in. After that I successfully logged in, but when I…
Georgi Stoyanov
  • 171
  • 1
  • 2
  • 6
0
votes
0 answers

Facebook malformed access token android

I'm trying to make a Graph API call on Facebook from Java (Android). Here's the request new Request( session, "/me/taggable_friends?fields=name,picture.type(normal)", null, HttpMethod.GET, new…
0
votes
1 answer

Recognize Facebook-Activity in onActivityResult

Good afternoon. I've implemented the Facebook API (v3) in my Android app so users can share achievements etc. When the Facebook Activity is finished then onActivityResult is called in the parent Activity. How can I recognize if the onActivityResult…
sjkm
  • 3,887
  • 2
  • 25
  • 43