我想在用戶朋友牆上張貼一些東西。如何使用Facebook Graph API for iPhone發佈到朋友牆
我使用它來發布到用戶牆上
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
@"a long run", @"name",
@"The Facebook Running app", @"caption",
@"it is fun", @"description",
@"http://itsti.me/", @"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他們提到了關於targetId我必須做些什麼。
仍然沒有回答:(有人答我的問題.. – iPrabu 2011-01-19 14:05:49
23天走了,沒有答案... – iPrabu 2011-01-30 11:06:18