我想使用FBNativeDialog
:
NSMutableDictionary *params = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
link, @"link",
url, @"picture",
strText, @"message",
@"name", @"name",
nil];
我看到Dialog不支持这样,但是有什么方法可以做到吗?
P / s:应该使用Dialog,然后用户也可以输入他们的信息。
答案 0 :(得分:0)
尝试SLComposeViewController
SLComposeViewController *composerVC = [SLComposeViewController composeViewControllerForServiceType:
SLServiceTypeFacebook];
[composerVC addURL:someUrl];
[composerVC addImage:someImage];
[composerVC setInitialText:someText];
答案 1 :(得分:0)
您可以使用简单的网络视图并显示
等FeedNSString *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];
}