Публикация UIWebview через Facebook connect

я используюfbConnect в моем приложении Cocoa Touch. я имеюUIWebview на мой взгляд, и я хочу опубликовать контекст UIWebview (его единственный текст) в FaceBook.

Как я должен изменитьFBStream опубликовать мой UIWebview?

FBStreamDialog* dialog2 = [[[FBStreamDialog alloc] init] autorelease];
            dialog2.delegate = self;
            dialog2.userMessagePrompt = @"Share Ghazals on your wall";
            dialog2.attachment = @"{\"name\":\"Hafez Application for iPhone\","
            "\"href\":\"http://itunes.apple.com/us/app/divan-of-hafez/id340865571?mt=8?tab=iphone\","
            "\"media\":[{\"type\":\"image\","
            "\"src\":\"http://photos-h.ak.fbcdn.net/photos-ak-sf2p/v43/67/279420942343/app_5_279420942343_8373.gif\","
            "\"href\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}],"
            "\"properties\":{\"another link\":{\"text\":\"Hafez App HomePage\",\"href\":\"http://www.momeks.com/hafez\"}}}";
            // replace this with a friend's UID
            // dialog.targetId = @"999999";
            [dialog2 show];

Вот мой код UIWebView:

NSString *path = [[NSBundle mainBundle] pathForResource:@"webViewContent" ofType:@"html"];
     NSFileHandle *readHandle = [NSFileHandle fileHandleForReadingAtPath:path];

     NSString *htmlString = [[NSString alloc] initWithData: 
                             [readHandle readDataToEndOfFile] encoding:NSUTF8StringEncoding];

     webView.opaque = NO;
     webView.backgroundColor = [UIColor clearColor];
     [self.webView loadHTMLString:htmlString baseURL:nil];
     [htmlString release];

Ответы на вопрос(1)

Ваш ответ на вопрос