Foursquare authenticate API returns all the information related to user's fourSquare account. In this response under "user" tag there is a tag "photo" with two other tags "prefix" and "suffix" like below.
photo = {
prefix = "https://irs1.4sqi.net/img/user/";
suffix = "/QHNJDIAFOXSJXR1H.jpg";
};
To get the user image you need to concatenate these two values like below.
NSString *imageURL = [NSString stringWithFormat:@"%@original%@",
[result valueForKeyPath:@"response.user.photo.prefix"],
[result valueForKeyPath:@"response.user.photo.suffix"]];
0 Comment(s)