0

I want to get data like user information from installed Facebook app (I dont need to login screen again on app, like it does in FBGraph or ShareKit) on iPhone. I should be able to get data directly from installed Facebook app (if its installed). How should I do that ?

Its pretty urgent for me. Anybody have any idea ?

Surjit Joshi
  • 3,287
  • 2
  • 18
  • 20

2 Answers2

1

You can not get data from installed app due to privacy concerns. Do google about Sandbox.

Maulik
  • 19,348
  • 14
  • 82
  • 137
0

You can get user information using the following lines of code. Please check the documentation here.

if (FBSession.activeSession.isOpen) {
    FBRequest *me = [FBRequest requestForMe];
    [me startWithCompletionHandler: ^(FBRequestConnection *connection,
                                      NSDictionary<FBGraphUser> *my,
                                      NSError *error) {
        NSLog(@"Firstname - %@", my.first_name);
    }];
}
Paramasivan Samuttiram
  • 3,728
  • 1
  • 24
  • 28