61314

Android Facebook friendsList array is null but FrindsList count is showing

My permissions:

facebookLoginButton.setReadPermissions( Arrays.asList("public_profile", "user_friends","read_friendlists"));

Callback functions:

new Request(Session.getActiveSession(), "/" + USER_ID + "/friends", null, HttpMethod.GET, new Request.Callback() { public void onCompleted(Response response) { showLogInfo("###########" + response.getRawResponse()); } }).executeAsync();

This above function I'm calling to get facebook friends list. but I'm getting following response.

{"summary":{"total_count":342},"data":[]}

My doubt is I'm getting total count. but why can't I get data list ? Please someone help me to Identify my mistake. Thanks in Advance.

Answer1:

It is not possible to get ALL friends with v2.0+, only with Apps created before end of April 2014 by using v1.0 of the Graph API. And it will only work until end of April 2015. See changelog for more information about the versions: https://developers.facebook.com/docs/apps/changelog

There is also invitable_friends and taggable_friends though, but they are reserved for Apps on facebook.com:

Recommend

  • Calling method from MVC controller hangs due to async await
  • Why does the Office 365 OutlookServices (v1.0.34) .Net client library hang indefinitely?
  • Authentication Error using Google Directory API from C#
  • MYSQL how to calculate the sum of a column within a date range
  • Get total count of rows in ORACLE and then get only 4 results
  • Box API v2 uploading multiple files per single request is limited to 20
  • Dapper or MySql not finding stored procedures that contain a full stop “.”
  • Getting information from a NSDictionary
  • Updating the composer.phar on Symfony2
  • ELMAH: Can you set it up to email errors only remotely?
  • Whats the best way of persisting data to Isolated Storage on Windows Phone 7?
  • R h2o.glm - issue with max_active_predictors
  • Zeromq with python hangs if connecting to invalid socket
  • SQL: Getting the physical size of a subset of a table
  • pip in virtualenv gets ConnectTimeoutError
  • how do i write assembly code from c#?
  • Marklogic : Query response time is very high
  • Why Encoding.ASCII != ASCIIEncoding.Default in C#?
  • Is calc() supported in html email?
  • bootstrap to use multiple ng-app
  • Comma separated Values
  • File upload with ng-file-upload throwing error
  • How to delete a row from a dynamic generate table using jquery?
  • How to set the response of a form post action to a iframe source?
  • How do I configure my settings file to work with unit tests?
  • embed rChart in Markdown
  • Turn off referential integrity in Derby? is it possible?
  • python draw pie shapes with colour filled
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • Add sale price programmatically to product variations
  • Running Map reduces the dimensions of the matrices
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • Reading document lines to the user (python)
  • Binding checkboxes to object values in AngularJs
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app
  • Net Present Value in Excel for Grouped Recurring CF
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize
  • How to load view controller without button in storyboard?
  • How do I use LINQ to get all the Items that have a particular SubItem?