0

我想通过使用以下参数共享一个提要FBNativeDialog

NSMutableDictionary *params = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
                                   link, @"link",
                                   url, @"picture",
                                   strText, @"message",
                                   @"name", @"name",
                                   nil];

我看到Dialog不支持这样的,但是有什么办法吗?

P / s:应该使用Dialog,然后用户也可以输入他们的消息。

4

2 回答 2

0

您可以使用简单的网络视图并显示提要,例如

NSString *theURL = [NSString stringWithFormat:@"http://www.google.com/"];
theURL = [theURL stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
NSURLRequest *theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:theURL]];
NSURLResponse *resp = nil;
NSError *err = nil;
NSData *response;
response = [NSURLConnection sendSynchronousRequest: theRequest returningResponse: &resp error: &err];
if (err != nil)
{
   //write some thing
}
else
{
          NSURL *url;
       url = [NSURL URLWithString: @"https://www.facebook.com/UwMadisonConfessions?fref=ts"];



    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

    [webView loadRequest:requestObj];
}
于 2013-04-11T08:48:18.547 回答
0

试试SLComposeViewController

SLComposeViewController *composerVC = [SLComposeViewController composeViewControllerForServiceType:
                                               SLServiceTypeFacebook];
        [composerVC addURL:someUrl];
        [composerVC addImage:someImage];
        [composerVC setInitialText:someText];
于 2013-04-11T06:18:02.987 回答