我尝试发布一条消息来供稿,但她只在个人资料中显示。
如何使此消息显示在新闻提要和个人资料提要上?
这是我的示例代码:
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
_gameName,@"text",_gameLink,@"href", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSDictionary* imageShare = [NSDictionary dictionaryWithObjectsAndKeys:
@"image", @"type",
_imageURL, @"src",
_gameLink, @"href",
nil];
NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
title_, @"name",
//@"teste", @"caption",
_msg, @"description",
[NSArray arrayWithObjects:imageShare, nil ], @"media",
_gameLink, @"href", nil];
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Share on Facebook", @"user_message_prompt",
actionLinksStr, @"action_links",
attachmentStr, @"attachment",
nil];
[_facebook dialog:@"feed" andParams:params andDelegate:self];
如果我尝试在不使用参数的情况下发布,则消息会同时显示:
[_facebook dialog:@"feed" andDelegate:self];