Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *pageId = @"##################";
- NSString *urlString = [NSString stringWithFormat:@"https://www.facebook.com/feeds/page.php?format=json&id=%@", pageId];
- NSURL *url = [NSURL URLWithString:urlString];
- NSURLRequest *request = [NSURLRequest requestWithURL:url];
- self.tags = [[NSArray alloc] initWithObjects:@"#meditation", nil];
- [NSURLConnection sendAsynchronousRequest:request
- queue:[NSOperationQueue mainQueue]
- completionHandler:^(NSURLResponse *response,
- NSData *data, NSError *connectionError)
- {
- QuoteItem *menuItem = [[QuoteItem alloc] init];
- if (data.length > 0 && connectionError == nil)
- {
- NSDictionary *fbFeed = [NSJSONSerialization JSONObjectWithData:data
- options:0
- error:NULL];
- NSMutableArray *entries = [fbFeed objectForKey:@"entries"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement