Facebook + iOS - 发布没有对话框的链接

时间:2011-03-30 07:50:46

标签: ios facebook iphone-sdk-3.0 facebook-ios-sdk

我在我的iphone应用程序中使用facebook-ios-sdk

我想从我的iphone应用程序在facebook上发布一个链接

NSLog(@"link..%@",[shareDict objectForKey:@"url"]);
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
    [shareDict objectForKey:@"url"], @"link",nil];
[facebookObj requestWithMethodName:@"facebook.Stream.publish" andParams:params
    andHttpMethod:@"POST" andDelegate:self];

它已成功发布为我的应用程序日志

2011-03-30 13:10:02.128 myApp[1804:207] link..http://khabar.ndtv.com/Home.aspx
2011-03-30 13:10:04.064 myApp[1804:207] received response..https://api.facebook.com/method/facebook.Stream.publish
2011-03-30 13:10:04.066 myApp[1804:207] request didLoad.. . . API..thod/facebook.stream.publish

但是在Facebook墙上没有显示链接......它显示为..

enter image description here

现在

  • 我如何发布没有显示对话框的链接
  • 我在facebook中的情况如何..因为用户可以选择从任何对话框链接中选择图像..我可以使用自己的视图。像 enter image description here

1 个答案:

答案 0 :(得分:0)

这是我的FB参数片段:

[fbArguments setObject:theName        forKey:@"name"];
[fbArguments setObject:theCpation     forKey:@"caption"];
[fbArguments setObject:theDescription forKey:@"description"];
[fbArguments setObject:theLink        forKey:@"link"];
[fbArguments setObject:theHREF        forKey:@"href"];
[fbArguments setObject:thePictureURL  forKey:@"picture"];