i using following code feeds:
nsdictionary *dirtemp; nserror *error; nsstringencoding encoding; nsstring *strurl = [nsstring stringwithformat:@"https://graph.facebook.com/%@/posts?access_token=appid|appsecret&limit=5",stridvalue]; //nslog(@"your string url %@",strurl); nsurl *url = [nsurl urlwithstring:[strurl stringbyaddingpercentescapesusingencoding:nsutf8stringencoding]]; nsstring *strresonse = [nsstring stringwithcontentsofurl:url usedencoding:&encoding error:&error]; dirtemp = [strresonse jsonvalue];
nsdictionary *dirtemp; nsstringencoding encoding; nsstring *strurl = [nsstring stringwithformat:@"graph.facebook.com/%@/…; nsurl *url = [nsurl urlwithstring:[strurl stringbyaddingpercentescapesusingencoding:nsutf8stringencoding]]; nsstring *strresonse = [nsstring stringwithcontentsofurl:url usedencoding:&encoding error:&error]; dirtemp = [strresonse jsonvalue]; nsdictionary *paginationdict=[dirtemp valueforkey:@"paging"]; nsstring *pagelink=[[nsstring alloc]initwithstring:[paginationdict objectforkey:@"next"]];
Comments
Post a Comment