gpt4 book ai didi

iphone - 使用 GraphAPI 或 FQL Query 或 HTTP Post 方法为 Facebook Post 点赞

转载 作者:行者123 更新时间:2023-12-01 19:13:06 26 4
gpt4 key购买 nike

我想喜欢 Facebook 中的帖子,我有 post_id,但我无法从 IOS SDK 的 Facebook 开发人员页面中找到喜欢特定帖子的 FQL 查询。

从 Facebook 开发者页面,它说您可以使用 HTTP POST 方法点赞帖子,这意味着我们不能使用 GraphAPI 或 fql.query 点赞帖子。

任何人都可以分享 HTTP POST URL 来点赞 Facebook 中的帖子。

是否有人在这里使用 iOS 中的自定义按钮为 Facebook 帖子开发类似按钮功能。

提前致谢。

最佳答案

如果您在 iOS 中使用 Facebook SDK,以下是一个示例:

[FBRequestConnection startWithGraphPath:[NSString stringWithFormat:@"%@/likes", post_id]
parameters:[NSDictionary dictionary]
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error)
{
if (error)
{
NSLog(@"Error: %@", [error localizedDescription]);
}
else
{
NSLog(@"Result: %@", result);
}
}];

关于iphone - 使用 GraphAPI 或 FQL Query 或 HTTP Post 方法为 Facebook Post 点赞,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15106841/

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