开发者

Problem getting friends events via FB connect

I'm trying to get the user's events and his friends events by the Graph API.

first, is there any other option getting all the friends events except sending new query for every one of them? (even if it exists in other protocols)

for( NSDictionary *friend in friends ) {

        NSLog(@"sending events for %@", [friend objectForKey:@"id"]);
        [facebook requestWithGraphPath:
         [NSString stringWithFormat:@"%@/events&since=today&until=tomorrow&limit=10", [friend objectForKey:@"id"]]
                           andDelegate:self];
    }

second, can I get ALL the user's events and not just what he has marked attendance 开发者_开发百科status for?

Thanks!


First of all you have to take Extended Permission of user_events and friends events. As for as your second part of question is concerened you can query to event_member table to get status. hope it will work

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜