Facebook在ios中发布错误 [英] Facebook posting error in ios
问题描述
这里我想使用下面的代码添加一个帖子到Facebook。
Here i am trying to add a post to facebook using following code.
FBAppCall *appCall = [FBDialogs presentShareDialogWithLink:urlToShare
name:@"Title"
caption:nil
description:@"description"
picture:nil
clientState:nil
handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
if (error) {
NSLog(@"Error: %@", error.description);
} else {
NSLog(@"Success!");
}
}];
但这不工作。它产生以下错误。
But this isn't working. It give following error.
错误Domain = com.facebook.Facebook.platform Code = 102操作无法完成。 .facebook.Facebook.platform error 102.)UserInfo = 0x1cde3340 {error_code = 102,action_id = E780C3AA-1387-4B9C-9A3A-9A16FB54BC59,error_message =发布期间发生错误。,app_id = 558567750859724}
这里我正在处理 cocos2d
,这是原因。
Here i am working on cocos2d
, is this can be the reason.
推荐答案
在Facebook开发人员门户下转到您应用程序的设置。
Go to your app's settings under the Facebook developer portal.
转到打开图表>类型
使用并选择操作类型,然后打开用户生成的图像该操作类型。保存这些设置,然后重试。它会工作。
Choose the action type using and turn on "User Generated Images" for that action type. Save these settings and try again. It will work.
这篇关于Facebook在ios中发布错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!