错误消息fbcdn.net不允许使用网址

时间:2015-03-25 13:51:13

标签: ios objective-c facebook-ios-sdk facebook-share

我试图用这段代码分享帖子:

// Put together the dialog parameters
    NSMutableDictionary *params = [[NSMutableDictionary alloc]init];
    [params setValue:[Campaign sharedInstance].name forKey:@"name" ];
    [params setValue:@"desription" forKey:@"description"];
    [params setValue:picture.facebookPicture.link forKey:@"link"];
    [params setValue:picture.facebookPicture.source forKey:@"picture"];

    // Show the feed dialog
    [FBWebDialogs presentFeedDialogModallyWithSession:nil                                             parameters:params handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
        if(error) {
            [basicViewController toastMessage:[@"Error sharing on Facebook: " stringByAppendingString:error.localizedDescription]];
        }}];

我收到错误,因为图片的来源是来自facebook。 我该怎么做才能添加想要的Facebook图片并仍然使用fbwebdialogs?

0 个答案:

没有答案