Facebook ios sdk:feed post don';在新闻提要上不显示
我试着发一条信息给她,但她只在个人资料中显示 如何在新闻提要和个人资料提要上显示此消息 这是我的示例代码:Facebook ios sdk:feed post don';在新闻提要上不显示,ios,facebook,facebook-graph-api,facebook-ios-sdk,Ios,Facebook,Facebook Graph Api,Facebook Ios Sdk,我试着发一条信息给她,但她只在个人资料中显示 如何在新闻提要和个人资料提要上显示此消息 这是我的示例代码: SBJSON *jsonWriter = [[SBJSON new] autorelease]; NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
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];
如果我尝试在没有参数的情况下使用post,则消息将同时显示在以下两个位置:
[_facebook dialog:@"feed" andDelegate:self];
试试这个:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"some text", @"message",
nil];
[facebook requestWithGraphPath:@"/me/feed" andParams:params
andHttpMethod:@"POST" andDelegate:self];
我希望这对你有帮助。
有关更多参数,请阅读抱歉,但此对话框不显示
我通过删除并重新创建应用程序解决了这个问题。但我认为这并没有显示提要对话框。它只是直接发布,对吗?是的,只是发布到facebook墙。