0

I am trying to use facebook graph api to get friends list
I am always getting

{Response: responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[]}}, error: null, isFromCache:false}

permissions are :
[installed, public_profile, read_stream, read_mailbox, publish_actions, user_likes, user_friends]

Please suggest me any way to get friends data.

Anuj Jindal
  • 1,711
  • 15
  • 24
  • If you are using Facebook API v2.0 which you have to if you created the app after 4/30/2014 /me/friends will only return friends that are also using the app. – WizKid May 25 '14 at 19:32

2 Answers2

1

Hey Dude even i had the same issue and finally got the solution by myself. Check my answer from the link. The recent release of facebook SDK restricted several access and permissions. But still you can fetch friends list by using sdk 3.0 that can be found here. Download sendRequestHowto Sample from the above link.

Community
  • 1
  • 1
Chandru
  • 5,954
  • 11
  • 45
  • 85
  • thanks buddy to tell me this Now I am getting friends list in a dialog, But I want to get all my friends list in GraphUser object, "List users", is there any way ..? – Anuj Jindal May 26 '14 at 06:42
  • RequestsDialogBuilder only for app request to the friends, I am using FriendPickerFragment and adding it to my application, this class has friendPickerFragment.loadData(false); which is also unable to get list of friends, if You know then please share that reason, thanks you.. – Anuj Jindal May 26 '14 at 07:13
  • 1
    Even i tried the same using FriendPickerFragment. But for that you need to submit the app for verification as similar to Google play listing. Then you could able to fetch friends list. Refer facebook docs for further infos – Chandru May 26 '14 at 08:41
0

To get events, you must have current events on facebook. Check your profile first for events.

Wasim Ahmed
  • 358
  • 3
  • 19