开发者

make user attend event through sdk

I was wondering if it's possible t开发者_StackOverflow中文版o make a user attend an event through the sdk (probably fql).

I've been looking at the wiki for FQL info as well as the graph api. But both look like they only support fetching info and not changing...

Any suggestions? I would like to build this feature into an application....


Using the new graph API my solution looks like this:

Facebook* facebook = [Facebook new];
[facebook authorize:_facebookApiKey permissions:[NSArray arrayWithObjects:@"rsvp_event",@"user_events", nil] delegate:self];

NSString *eventIDWithSlashPrefix = @"/eventID";
NSMutableDictionary *params = [NSMutableDictionary new];
[params setObject:_facebook.accessToken forKey:@"access_token"];

[facebook requestWithGraphPath:[eventIDWithSlashPrefix stringByAppendingString:@"/attending"] andParams:params andHttpMethod:@"POST" andDelegate:self];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜