iphone - Publish UIWebview via Facebook connect -


I am using fbConnect in my coke touch application. I have UIWebview on my code, and I want to publish the context of UIWebview (its only text) to Facebook.

How do I change FBStream to publish my UIWebview?

FBStreamDialog * dialog2 = [[[FBstream dialog] alloc] init] autoresphere]; Dialog2.delegate = self; Dialog2.userMessagePrompt = @ "Share Gazals On Your Wall"; Dialog2.attachment = @ "{\" name \ ": \" Huffes app for iPhone \ "," "\" href \ ": \" http://itunes.apple.com/us/app/divan-of - Hefez / ID 340865571? 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 / \ "}]," \ "attribute \": {\ "Another Link \": {\ "text \": \ "Homepage App Homepage \", \ "href \": \ "http: //www.momeks.com/hafez \ "}}}"; // replace it with a friend's UID / dialogue; target.tg = @ "999999"; [Dialogue 2 Show];

Here is my UIWebView code:

  NSString * path = [[NSBundle mainBundle] pathForResource: @ "webViewContent" type: @ "html"]; NSFileHandle * readHandle = [ NSFileHandle fileHandleForReadingAtPath: path]; NSString * htmlString = [[NSString alloc] initWithData: [readHandle readDataToEndOfFile] encoding: NSUTF8StringEncoding]; WebView.opaque = NO; WebView.backgroundColor = [UIColor clear collar]; [self.webView loaded HTML string: HtmlString baseURL: zero]; [Html Stri C release];  

Not sure what I mean by sharing the UIWebview reference I understand

If you want to publish the text, then many examples are on FBCNect.

Would you like to try ShareKit, because it makes everything much easier ....

If you can please explain the question again, then I can give better help. .

Godspeed, Oeded.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -