脸书 + iOS - 发布链接而不使用对话框

发布于 2024-10-28 10:32:34 字数 1051 浏览 1 评论 0原文

我在我的 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..

enter image description here

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
    enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苦笑流年记忆 2024-11-04 10:32:34

这是我的 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"];

Here's my FB arguments snippet:

[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"];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文