Независимо от того, что я делаю, я получаю эту ошибку, когда я делюсь:Facebook SDK Share Диалог ошибка для прошивки
2014-02-03 00: 13: 36.392 Курт Osiander [4443: 60b] публикация Ошибки истории : Ошибка домена = com.facebook.Facebook.platform Code = 102 «Операция не может быть выполнена. (Com.facebook.Facebook.platform error 102.)« UserInfo = 0x15d475b0 {error_message = Произошла ошибка во время публикации., App_id = XXXXXXXXXX, error_code = 102}
Я режим отключил песочнице и возился с открытыми вариантами графика (Facebook posting error in ios) не повезло. Мой код прилагается ниже:
// Check if the Facebook app is installed and we can present the share dialog
FBShareDialogParams *params = [[FBShareDialogParams alloc] init];
params.link = [NSURL URLWithString:@"https://http://www.kurtosiander.com/"];
params.name = @"Kurt Osiander's Move of the Week";
params.caption = @"Kurt Osiander's Move of the Week";
params.picture = [NSURL URLWithString:@"http://a5.mzstatic.com/us/r30/Purple/v4/4b/7e/73/4b7e737c-bdc1-2aa5-3288-4e76c658235b/mzl.yafqehvw.175x175-75.jpg"];
params.description = @"Kurt's iPhone app is finally available! Check it out now to learn all his moves, organized by position and submission.";
// If the Facebook app is installed and we can present the share dialog
if ([FBDialogs canPresentShareDialogWithParams:params]) {
// Present share dialog
NSLog(@"Present Dialog");
[FBDialogs presentShareDialogWithLink:params.link
name:params.name
caption:params.caption
description:params.description
picture:params.picture
clientState:nil
handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
NSLog(@"handling");
if(error) {
// An error occurred, we need to handle the error
// See: https://developers.facebook.com/docs/ios/errors
NSLog(@"%@", [NSString stringWithFormat:@"Error publishing story: %@", error.description]);
} else {
// Success
NSLog(@"result %@", results);
}
}];
В моем приложении делегат:
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
BOOL urlWasHandled = [FBAppCall handleOpenURL:url
sourceApplication:sourceApplication
fallbackHandler:^(FBAppCall *call) {
NSLog(@"Unhandled deep link: %@", url);
// Here goes the code to handle the links
// Use the links to show a relevant view of your app to the user
}];
return urlWasHandled;
}
возможно дубликат [Facebook SDK - прошивка - Сбой поделиться URL (Error 102)] (http://stackoverflow.com/questions/18541510/facebook-sdk-ios-fail -to-share-url-error-102) – Pawan
My FacebookDisplayName - это то же самое для моей записи plist и настроек моего Facebook. К сожалению, это не проблема. –
все еще у вас есть эта проблема? – Pawan