I use Facebook SDK 3.10.0 for iOS. When i'm trying to get user newsfeed, i've a problem: On facebook request:
[FBRequest requestForGraphPath:@"me/home"]
i get response with all data that i need and info about paging:
data = (
"A LOT OF USER DATA"
);
paging = {
next = "https://graph.facebook.com/{MY_USER_ID}/home?format=json&access_token={ACCESS_TOKEN}&limit=25&until=1385113385";
previous = "https://graph.facebook.com/{MY_USER_ID}/home?format=json&access_token={ACCESS_TOKEN}&limit=25&since=1385206398&__previous=1";
};
but when i trying to get info using next link and AFHTTPRequestOperation:
AFHTTPRequestOperation *newDataOperation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
newDataOperation.responseSerializer = [AFJSONResponseSerializer serializer];
[newDataOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Next page retrieving error = %@", error);
}];
i get empty json
data = (
);
i've using Facebook Access Token Debugger and result:
And there is strange thing access token which i get using Graph Api Explorer differs from which i get in my app. Token which i get from Graph Api Explorer works perfectly fine but when i tesetd token from app results the same: me/home working
but next link returns empty: