gpt4 book ai didi

iphone - 如何在 Facebook Wall 帖子消息中添加 NEW LINE?

转载 作者:行者123 更新时间:2023-12-03 20:15:21 26 4
gpt4 key购买 nike

如何在 Facebook 帖子墙消息中添加新行(“标题”)...\n 不接受任何其他方式...

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
StrImg, @"picture",
StrName, @"name",
strURL, @"link",
emailBody, @"caption",
actionLinksStr, @"actions",
nil];


[[delegate facebook] dialog:@"feed"
andParams:params
andDelegate:self];

最佳答案

请尝试以下代码可能会解决您的问题。

    - (IBAction)Publish {
// Show the activity indicator.
[self showActivityView];

// Create the parameters dictionary that will keep the data that will be posted.
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"My test app", @"name",
@"http://www.google.com", @"link",
@"FBTestApp app for iPhone!", @"caption",
@"This is a description of my app", @"description",
@"Hello!\n\nThis is a test message\nfrom my test iPhone app!", @"message",
nil];

// Publish.
// This is the most important method that you call. It does the actual job, the message posting.
[facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];

**Edit**

[[delegate facebook] dialog:@"feed"
andParams:params
andDelegate:self];
}

关于iphone - 如何在 Facebook Wall 帖子消息中添加 NEW LINE?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11220983/

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