Questions tagged [android-facebook]

The Facebook SDK for integrating an Android app with Facebook. Questions should involve the usage and development of the Android Facebook SDK, not merely about using Facebook.

The Facebook SDK for integrating an Android app with Facebook.

616 questions
4
votes
2 answers

java.lang.UnsupportedOperationException: Session: an attempt was made to request new permissions for a session that has a pending request

Below code is for posting status update using facebookSDK3.0 in android. If I'm using UiLifeCycleHelper class its working well. But I want to post the status in facebook without using UiLifeCycleHelper class. I tried the below code, which throws…
RajeshVijayakumar
  • 10,281
  • 11
  • 57
  • 84
4
votes
0 answers

How to get List of Data in Tabbed Actvity?

I have made a program in which i am fetching list of all my Facebook Friends with their name, dob and profile picture, but i have decided to use tabs in my existing program therefore, i have also written code for that, but whenever i run my app,…
3
votes
0 answers

Invalid scopes error message, when login from developer account in facebook

My app is live on facebook for more than a year now. Recently i have a new requirement to get user's gender, location and other information when user logs in through facebook. My email address is added on the app as an administrator. So it should…
Taha Kirmani
  • 1,274
  • 6
  • 26
  • 55
3
votes
1 answer

Android Facebook SDK lowers app performance

I am using Facebook SDK for my android app. I am facing scroll lags and performance issues all over the app. Removing the sdk removes all the issues. But i intend to use the sdk for analytics purpose. Is there anything that has to be added with…
3
votes
3 answers

Facebook app testers not receiving notification

I am writing an Android app which makes use the the Facebook SDK (specifically the login and friends list). I added the first 4 testers to https://developers.facebook.com/apps/{APP-ID}/roles/roles/ without any problems (these users were not asked to…
Adam
  • 2,167
  • 5
  • 19
  • 33
3
votes
2 answers

Android Facebook Integration Invalid Key hash error on Android device but working fine on Emulator

When I run my Android app in my android device it was working fine when I clicked first time on Continues with Facebook button.When i try to login again after logged out it is showing an error "Invalid Key has" The key has does not match any stored…
3
votes
0 answers

Facebook graph api cursor based paging not working in android

I am trying to get all pages url liked by user. I'm able to fetch records using below method, but paging not working. I'm getting same data every time with same before - after cursor token lead to infinite loop. Limit params also not…
3
votes
3 answers

AppEventsLogger.deactivateApp(Context context) deprecated

I'm using Facebook SDK for Android v4.20. When I want to call AppEventsLogger.deactivateApp(getApplication()); in my Activity's onPause() it shows as deprecated. I'm using Android Studio 2.3, the app minimum SDK is 16 and target is 25, I use build…
3
votes
4 answers

Facebook Login Error When Facebook App Is Installed On Device

I am suffering with Facebook login issue in my android app. If there is no Facebook app installed on android device or I use an emulator, Facebook login works properly. But if Facebook app is installed on Mobile than it gave an error. Error in…
3
votes
1 answer

Can't get Access Token for Facebook SDK 4.8.1 for Android (OR) FacebookCallback is not called (OR) requestCode is different in Facebook integration

I followed Facebook login for Android to integrate FB to my Android app. It is done. I see the permission screen where user has to accepet to use his email ID. Issue is that none of the callbacks of FacebookCallback are getting called. I followed…
3
votes
1 answer

I am not able to logout from facebook in android(Facebook sdk is 3.21)

I am not able to logout from facebook in android. Facebook sdk is 3.21 public void logoutFromFacebook() { facebook = new Facebook(APP_ID); mAsyncRunner = new AsyncFacebookRunner(facebook); mAsyncRunner.logout(this, new…
Dilip
  • 2,622
  • 1
  • 20
  • 27
3
votes
0 answers

Starting a new activity after completing facebook login android with details stored in shared preference

This is my facebook activity to perform login..I have successfully logged in but my problem is I want to store the first name , last name , facebook id in shared preference and I would like to move on to a new activity where I display all the…
Dharma Raj
  • 51
  • 3
3
votes
2 answers

Description not shown in Facebook ShareDialog

I am trying the ShareLinkContent using the ShareDialog from Facebook in my Android App. Following is the code snippet I have used. I have the content title and the description as it is needed for the post. It is fine while is show in the mobile…
iappmaker
  • 2,945
  • 9
  • 35
  • 76
3
votes
5 answers

how to implement facebook login in android using facebook sdk 4.7

I am trying to login with facebook using android sdk 4.7. I have tried the following link http://www.theappguruz.com/blog/android-facebook-integration-tutorial http://www.androidhive.info/2012/03/android-facebook-connect-tutorial/
Pankaj
  • 239
  • 1
  • 3
  • 10
3
votes
1 answer

Re-ask declined permissions in Facebook not working

Let's say user is prompt for permission A, B, C and denies B. Login will fail but when I try to perform login again, instead of showing the dialogue where I can accept or revoke permissions, shows the dialogue where the message "You've already…