gpt4 book ai didi

ios - 如何使用适用于 iPhone 的 Facebook Graph API 发布到 friend 墙

转载 作者:可可西里 更新时间:2023-11-01 04:44:51 26 4
gpt4 key购买 nike

我想在用户 friend 墙上发帖。

我用这个发帖到用户墙

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];

但是我需要在我的 friend 墙上发帖。我该怎么做

在此post他们提到了 targetId,我必须为此做些什么吗。

最佳答案

你试过用吗,

[facebook requestWithGraphPath:@"[friend_ID]/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];

更新:

在 friend 墙上发帖将不再适用于 Graph API。相反,您必须使用 FBDialog。

关于ios - 如何使用适用于 iPhone 的 Facebook Graph API 发布到 friend 墙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4614920/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com