gpt4 book ai didi

facebook-graph-api - "Like"使用 Facebook Graph API 的页面, objective-c

转载 作者:行者123 更新时间:2023-12-04 20:21:28 24 4
gpt4 key购买 nike

我试图允许我的 iOS 应用程序的用户使用以下代码“喜欢”一个页面:

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"access_token",[[NSUserDefaults standardUserDefaults] objectForKey:@"fb_accessToken"], nil];

[facebook requestWithGraphPath:@"PAGE_ID/likes" andParams:params andHttpMethod:@"POST" andDelegate:self];

我收到错误消息:
Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x624d560 {error=<CFBasicHash 0x6243fb0 [0x171e400]>{type = mutable dict, count = 2,
entries =>
2 : <CFString 0x624cec0 [0x171e400]>{contents = "type"} = <CFString 0x624bc40 [0x171e400]>{contents = "OAuthException"}
3 : <CFString 0x624aaf0 [0x171e400]>{contents = "message"} = <CFString 0x6248b50 [0x171e400]>{contents = "(#3) Application does not have the capability to make this API call."}
}
}

这应该是 Graph API 的一部分,因为它说你可以用它来“喜欢”任何带有/Likes 连接的对象。有什么帮助吗?

最佳答案

很抱歉成为坏消息的承载者,但显然您不能代表用户喜欢页面。但是,您可以代表用户点赞帖子、评论和照片。

希望这是有道理的,我花了最后几个小时试图做模拟。

富有的

关于facebook-graph-api - "Like"使用 Facebook Graph API 的页面, objective-c ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6024978/

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