脸书 + iOS - 发布链接而不使用对话框
我在我的 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 墙上...它显示为..
现在
- 我如何在不显示对话框的情况下发布链接
- 我如何像在 facebook 中那样..因为用户可以选择从链接中选择图像,无需任何对话框。我可以使用我自己的视图。像一样
I am using facebook-ios-sdk in my iphone application
I am trying to post a link on facebook from my iphone application
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];
it successfully posted as my application log
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
But link is not showing on facebook wall... it shown as..
Now
- How I post the link with out showing dialog
- How I it as like in facebook .. as user have option to select the image from link with out any dialog.. I can use my own view for it. like as
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我的 FB 参数片段:
Here's my FB arguments snippet: