Facebook sdk 3.5.1 invite friends request makes double selecting in ios -


i didn't have problem fb sdk 3.2, after upgraded in sdk 3.5.1 friend inviter has strange problem, when select 1 friend choose selected 1 , 1 under it. when trying scroll downward restarts table , brings me on tables top. here method:

-(ibaction)secondclick:(id)sender { nsdictionary *params = [[nsdictionary alloc] initwithobjectsandkeys:nil];  [fbwebdialogs  presentrequestsdialogmodallywithsession:nil  message:@"learn how make ios apps social."  title:@"test"  parameters:params  handler:^(fbwebdialogresult result, nsurl *resulturl, nserror *error) {      if (error) {          // error launching dialog or sending request.          nslog(@"error sending request.");      } else {          if (result == fbwebdialogresultdialognotcompleted) {              // user clicked "x" icon              nslog(@"user canceled request.");          } else {              // handle send request callback              nsdictionary *urlparams = [self parseurlparams:[resulturl query]];              if (![urlparams valueforkey:@"request"]) {                  // user clicked cancel button                  nslog(@"user canceled request.");              } else {                  // user clicked send button                  nsstring *requestid = [urlparams valueforkey:@"request"];                  nslog(@"request id: %@", requestid);              }          }      }  }]; 

from have come know facebook has fixed issue , going make fix live soon. alternate solution make own custom ui. 1. friends list - [self startconnectionwithgraphpath:@"me/friends" parameters:params method:@"get" completionselector:@selector(callback)]

  1. download pictures using url @"https://graph.facebook.com/fbid/picture"

  2. implement table view similar facebook's request ui showing list of friends along profile pics.

  3. use 'to' param direct request selected user(s). nsmutabledictionary* params = [nsmutabledictionary dictionarywithobjectsandkeys: @"286400088", @"to", nil];

this way won't need show facebook ui select friends. al though ui still appear after user selects friends custom ui, that'd tap 'send'.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -