我很难从Facebook Graph API获取小尺寸的新闻Feed。这是我得到的网址https://fbcdn-photos-b-a.akamaihd.net/hphotos-ak-xpf1/t1.0-0/10363492_10202184985725870_7374705736674502849_s.jpg。不确定如何获得尺寸为o.jpg的图片
答案 0 :(得分:0)
最后,想通了。这就是我所做的。
NSString * query = [NSString stringWithFormat:@" SELECT pid,object_id,src_big,src_big_width,src_big_height FROM photo WHERE object_id =%@",wallPost [@" object_id"] ]。 //从SELECT ........
开始 NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
query, @"q",
nil];
[FBRequestConnection startWithGraphPath:@" / fql"参数:params HTTPMethod:@" GET" completionHandler:^(FBRequestConnection *连接, id结果, NSError *错误){ //做你的东西 if(!error){ NSArray * photo = [result objectForKey:@" data"];
NSString *photoString = [[photo valueForKey:@"src_big"]componentsJoinedByString:@""];
//NSLog(@"result %@ %@", photoString);
}
}];