Q:

not getting facebook friend list

i am getting null in friends list this is my code
-(void)getFriendList
{
  FBRequest *friendsRequest=[FBRequest requestForMyFriends];

[friendsRequest startWithCompletionHandler:^(FBRequestConnection *connection,NSDictionary* result,NSError *error)
 {
     arrFriendFB = [result objectForKey:@"data"];

     arrFriendFB=[arrFriendFB valueForKey:@"first_name"];
     NSLog(@"friemd=%@",arrFriendFB);

     NSLog(@"friends description :%@",[arrFriendFB description]);

 }];

}

A:

As new facebook APi doc there is some modification. see some change's mention below
first you need to get access token with "user_friends" permission.
its graph API url:-
https://graph.facebook.com/me/friends?access_token=

For more information follow this link
 https://developers.facebook.com/docs/facebook-login/permissions/v2.0

