4

When I use FBDialogs to post an image to facebook, facebook will show "via iOS" on the wall; How can I change "via iOS" to "via My App Name" using Facebook SDK 3.5?

[FBDialogs presentOSIntegratedShareDialogModallyFrom:self
                                             session:[FBSession activeSession]
                                         initialText:@"ABC"
                                              images:image
                                                urls:nil
                                             handler:^(FBOSIntegratedShareDialogResult result, NSError *error) {
                                             }];
4

1 回答 1

0

With the latest version of the SDK you can use presentShareDialogWithPhotoParams to share an image. See example below:

FBShareDialogPhotoParams *photoParams = [FBShareDialogPhotoParams new];
UIImage *screenshot = // Your image...
photoParams.photos = @[screenshot];
[FBDialogs presentShareDialogWithPhotoParams:photoParams
                                 clientState:nil
                                     handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {

                                     }];
于 2014-05-01T06:14:06.020 回答