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.
Asked
Active
Viewed 53 times
-1
-
It is not possible to set user profile picture via API. – CBroe Aug 26 '16 at 12:23
1 Answers
-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