title: iOS -deprecated permission-facebook friends birthday using Graph API
body: <p>I am new to iOS .
  I am trying to <strong>fetch birthdays of all friends</strong> from a Facebook account.
  I followed <a href="https://developers.facebook.com/" rel="nofollow">Developers.facebook</a></p>
  
  <p>I have requested all the necessary permissions :<code>user_friends</code>, <code>friends_birthday</code>, <code>read_stream</code>. I have also set permissions in the <em>Graph Api Explorer</em>.</p>
  
  <p>First I used the graph path : <code>@"/me/friends?fields=name,id,birthday"</code>. It is returning <em>only name and id</em> of friends <em>who have used the app</em>.</p>
  
  <p>I searched in the web and tried out <code>@"/me/taggable_friends"</code>. It is given in the developer site that we can access only three fields for this taggable_friends : <code>id,name,picture</code>.</p>
  
  <p>I found that <strong>facebook has deprecated friends details permissions</strong>. Please refer <a href="https://developers.facebook.com/docs/apps/upgrading" rel="nofollow">https://developers.facebook.com/docs/apps/upgrading</a></p>
  
  <blockquote>
    <p>-(void)pickFriendsClick 
    {</p>
  
  <pre><code>NSArray *permissions = [[NSArray alloc] initWithObjects: @"user_birthday",@"friends_hometown",@"friends_birthday",@"friends_location",nil];
  if (![[FBSession activeSession]isOpen]) {
  
      if (APP.fb) {
  
          APP.fb =[[FBSession alloc]initWithPermissions:permissions];
      }
  }
  
  FBRequest *friendRequest = [FBRequest requestForGraphPath:@"/me/taggable_friends"];
  [friendRequest startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
      NSArray *data = [result objectForKey:@"data"];
      NSMutableArray *friends= [data mutableCopy];
      NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"updated_time" ascending:TRUE];
      [friends sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];
  
      for (FBGraphObject&lt;FBGraphUser&gt; *friend in friends) {
          NSLog(@"%@:%@", [friend name],[friend birthday]);
      }}]; }
  </code></pre>
  </blockquote>