Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Facebook SDK get profile cover image

How can i get the cover of a profile with the FacebookSDK in iOS?

 [FBRequestConnection startWithGraphPath:@"/me/events?fields=cover"
                             parameters:nil
                             HTTPMethod:@"GET"
                      completionHandler:^(
                                          FBRequestConnection *connection,
                                          id result,
                                          NSError *error
                                          ) {

                          /* handle the result */
                          NSLog(@"%@", result);
                      }];
like image 611
profidash_98 Avatar asked Nov 17 '25 22:11

profidash_98


1 Answers

you can also get facebook cover pic by simply calling

http://graph.facebook.com/{user_id or page_id}?fields=cover
like image 85
Gajendra Rawat Avatar answered Nov 20 '25 14:11

Gajendra Rawat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!