ios - How to get large picture size from Facebook graph API for news feed -
i stuck getting picture facebook graph api news feed small size. url https://fbcdn-photos-b-a.akamaihd.net/hphotos-ak-xpf1/t1.0-0/10363492_10202184985725870_7374705736674502849_s.jpg. not sure how picture size o.jpg
finally, figured out. here did.
nsstring *query = [nsstring stringwithformat:@"select pid, object_id, src_big, src_big_width, src_big_height photo object_id = %@", wallpost[@"object_id"]]; //begins select........
nsmutabledictionary * params = [nsmutabledictionary dictionarywithobjectsandkeys: query, @"q", nil];
[fbrequestconnection startwithgraphpath:@"/fql" parameters:params httpmethod:@"get" completionhandler:^(fbrequestconnection *connection, id result, nserror *error) { //do stuff if (!error) { nsarray *photo = [result objectforkey:@"data"];
nsstring *photostring = [[photo valueforkey:@"src_big"]componentsjoinedbystring:@""]; //nslog(@"result %@ %@", photostring); } }];
Comments
Post a Comment