-1

I am working on one app in that i want to set profile picture of Facebook. I am not getting any solution to set picture using sdk so it will be fine to have solution using graph API.

Bhagyashree mahajan
  • 531
  • 1
  • 6
  • 14

1 Answers1

-1
if ([FBSDKAccessToken currentAccessToken]) {
    [[[FBSDKGraphRequest alloc]initWithGraphPath:@"me" parameters:@{@"fields":@"picture"}] startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
        NSLog(@"%@",result);
    }];
}

After getting result, use the nsurlsession and get data, pass into the imageview[use main thread when using uielement].

Pavankumar
  • 288
  • 1
  • 10