开发者

How to get friends list using four square api in iphone

I want to 开发者_如何学Pythoninclude facebook api into my iphone application .And also i want to list of friends using foursquare api ....

Is it possible ?

Can anyone help me ?

Thanks in advance......


You can download source code for the four square api from the github using this link

https://github.com/Constantine-Fry/Foursquare-API-v2

after that use iOS API for iPhone

to find friend list for the user use the following method

if ([Foursquare2 isNeedToAuthorize]) {
    [self authorizeWithViewController:self Callback:^(BOOL success,id result){
        if (success) {
            [Foursquare2  getDetailForUser:@"self"
                                  callback:^(BOOL success, id result){
                                      if (success) {
                                          // NSLog(@"%@",result);
                                      }
                                  }];
        }
    }];
}else {


    [Foursquare2 getFriendsOfUser:@"self" callback:^(BOOL success, id result){
                                            if (success) {
                                            NSLog(@"%@",result);
                                            }
                                        }];
    }


You can download the facebook SDK for iOS here

and get information on the Foursquare API here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜