Facebook Graph API:回复活动
我试图允许用户通过我的 iPhone 应用程序回复活动(它完全基于事件),但我遇到了一些麻烦。我已经
尝试过这 3 种方法:
[facebook requestWithGraphPath:@"EVENT_ID/attending" andParams:nil andHttpMethod:@"POST" andDelegate:self];
[facebook requestWithGraphPath:@"EVENT_ID/attending" andParams:nil andHttpMethod:@"GET" andDelegate:self];
[facebook requestWithGraphPath:@"EVENT_ID/attending" andDelegate:self];
我的测试事件 ID 是“216105945072171”
我对所有 3 个方法都遇到相同的错误:“操作无法完成。(facebookErrDomain 错误 10000。)”
编辑:
我让它与此一起工作,但是感觉像是某种黑客攻击。如果谁有更好的解决方案,欢迎留言!
[facebook requestWithGraphPath:@"EVENT_ID/attending?method=POST&access_token=ACCESS_TOKEN" andDelegate:self];
I am trying to allow users to RSVP to events through my iPhone app (it is entirely events based), but i'm having some troubles. I have
I have tried these 3 methods:
[facebook requestWithGraphPath:@"EVENT_ID/attending" andParams:nil andHttpMethod:@"POST" andDelegate:self];
[facebook requestWithGraphPath:@"EVENT_ID/attending" andParams:nil andHttpMethod:@"GET" andDelegate:self];
[facebook requestWithGraphPath:@"EVENT_ID/attending" andDelegate:self];
My test event ID is "216105945072171"
I get the same error for all 3: "The operation couldn’t be completed. (facebookErrDomain error 10000.)"
EDIT:
I got it working with this, however it feels like a hack of sorts. If anyone has a better solution, please post!
[facebook requestWithGraphPath:@"EVENT_ID/attending?method=POST&access_token=ACCESS_TOKEN" andDelegate:self];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验,Facebook 原始 API 在生成 ErrDomain 时存在一些问题。
使用其他 API 可能不会出现您的问题,如下所示:
http://www.capturetheconversation.com/technology/iphone-facebook-oauth-2-0-and-the-graph-api-a-tutorial-part-2
According to my experience, Facebook original API have some issue to produce ErrDomain.
Your issue may not occur to use another API as below:
http://www.capturetheconversation.com/technology/iphone-facebook-oauth-2-0-and-the-graph-api-a-tutorial-part-2