I am attempting to allow users of my iOS app to choose a picture form their Facebook pictures with a graph API call. I do this by querying for the album IDs then by searching through those albums. The album query works. However, if I close to app completely (by deleting it from currently open apps), I can no longer make the call. If I just close the app and re-open it, it works fine. This only happens when I completely close the app. Is there a way around this?
Here is the code I use to make the call to get albums:
[FBRequestConnection startWithGraphPath:@"me/albums"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error) {
NSLog(@"Results: %@", result);
}
}
];
Again, the issue is that when I close the app, double-click the home button, and completely close my app, then re-open it, this call does not work. Thanks in advance.