简体   繁体   English

Facebook Graph API:活动的RSVP

[英]Facebook Graph API: RSVP to Event

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. 我试图允许用户通过我的iPhone应用程序对事件进行RSVP(完全基于事件),但是我遇到了一些麻烦。 I have 我有

I have tried these 3 methods: 我尝试了以下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];

My test event ID is "216105945072171" 我的测试事件ID是“ 216105945072171”

I get the same error for all 3: "The operation couldn't be completed. (facebookErrDomain error 10000.)" 我对所有3都收到相同的错误:“操作无法完成。(facebookErrDomain错误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];

According to my experience, Facebook original API have some issue to produce ErrDomain. 根据我的经验,Facebook原始API会产生ErrDomain。 Your issue may not occur to use another API as below: 使用其他API可能不会出现您的问题,如下所示:

http://www.capturetheconversation.com/technology/iphone-facebook-oauth-2-0-and-the-graph-api-a-tutorial-part-2 http://www.capturetheconversation.com/technology/iphone-facebook-oauth-2-0-and-the-graph-api-a-tutorial-part-2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM