尝试在时间轴上发布打开的图形故事时出错。显式共享集并批准用于开放图形故事。我已经更新到4.2,我在更改日志中看到了#34;修复了阻止使用fb:explicit_shared用于打开图形操作的错误。"我希望这能解决这个问题,但事实并非如此。
使用的代码:
FBSDKShareOpenGraphObject *object = [FBSDKShareOpenGraphObject objectWithProperties:properties];
FBSDKShareOpenGraphAction *action = [[FBSDKShareOpenGraphAction alloc] init];
action.actionType = @"simplst:create";
[action setObject:object forKey:@"simplst"];
//i have tried all the following and none work
[action setObject:@"true" forKey:@"fb:explicitly_shared"];
//[action setObject:@(YES) forKey:@"fb:explicitly_shared"];
//[action setObject:@(1) forKey:@"fb:explicitly_shared"];
//[action setString:@"true" forKey:@"fb:explicitly_shared"];
//[action setValue:@(YES) forKey:@"fb:explicitly_shared"]; //this prevents share
FBSDKShareOpenGraphContent *content = [[FBSDKShareOpenGraphContent alloc] init];
content.action = action;
content.previewPropertyName = @"simplst";
FBSDKShareAPI *shareAPI = [[FBSDKShareAPI alloc] init];
shareAPI.delegate = self;
shareAPI.shareContent = content;
[shareAPI share];
该应用可以获得一个帖子ID,og故事显示在活动日志中,观众是朋友,允许在时间轴上选择。
此开放式图表故事已获得"明确分享"检查功能并显示打开的图形操作的绿色状态。
此Stack问题不起作用IOS Facebook SDK - Post Open Graph and show on Timeline without clicking Activity Log
此Stack问题没有可行的答案 Open graph story posted successfully using graph API but not seen neither on the timeline nor in the Activity Log
此Stack帖子包含来自facebook的回答,表示无法在用户的时间轴上显示帖子,即使显式共享设置为true。 Explicitly Shared not working for post - Facebook Android SDK Open Graph Story 所以,如果仍然如此,我如何分享时间线(如Instagram)?
我也提交了一份错误报告。当我开始工作时,无论出现什么问题,我都会记录下来。
答案 0 :(得分:0)
对于在时间线上显示OG帖子有问题的其他人。这对我有用:[action setString:@“true”forKey:@“fb:explicit_shared”];