0

を使用して、以下のパラメーターでフィードを共有したいFBNativeDialog:

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

ダイアログがこのようにサポートしていないのを見ましたが、それを行う方法はありますか?

P/s: ダイアログを使用する必要があり、ユーザーはメッセージを入力することもできます。

4

2 に答える 2

0

シンプルな Web ビューを使用して、次のようなフィードを表示できます

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 に答える