当前位置: 首页 > 工具软件 > fql > 使用案例 >

FaceBook sdk FQL

段干华晖
2023-12-01

单个查询:

SELECT about_me,name,relationship_status,birthday_date,interests,sex,work,education FROM user WHERE uid = me()

 

多个查询

NSString *query =@"{"@"'other_info':'SELECT name,education,work FROM user where uid=780798254',"
    @"'my_info':'SELECT uid, name, pic_square FROM user WHERE uid = 780798254',"
    @"}";

 查询方法:

NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:query,@"q", nil];
[FBRequestConnection startWithGraphPath:@"/fql" parameters:params HTTPMethod:@"GET" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
        if (error) {
            DLog(@"Error: %@", [error localizedDescription]);
        }else{
            NSLog(@"Result: %@",result);
        }
    }];

 

转载于:https://www.cnblogs.com/iosdev/archive/2012/12/17/2821479.html

 类似资料:

相关阅读

相关文章

相关问答