简体   繁体   中英

Adding friend through Facebook Dialog iPhone

I want to make a friend request in my app using the FBWebDialogs and I tried implementing the solution given through here which is:

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: facebookUserId, @"id", nil];
[FBWebDialogs presentDialogModallyWithSession:nil dialog:@"friends" parameters:params handler:nil];

It showed the request but when I click the confirm, there is an error saying "Sorry, something went wrong" We're working on getting this fixed as soon as we can.

I am using the latest Facebook SDK . Do you encounter this error also? Thanks for the help.

the bundle id on developers.facebook.com need to be exactly identical to the one in your app

  1. got to https://developers.facebook.com/
  2. choose your app
  3. got to Settings
  4. check the Bundle ID (I'm not sure, but I think it's case sensitive)

在developers.facebook.com上的捆绑ID

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM