如何在 Graph API 中将 Flash 视频发布到用户墙上?
我试图弄清楚如何使用 C# 中的 Graph API 将 Flash 电影发布到用户的墙上。
这些是我传入的参数:
args["message"] = "My Message";
args["name"] = "SOME TEXT";
args["link"] = "http://www.example.com";
args["picture"] = "http://www.example.com/source.jpg";
args["source"] = "http://www.example.com/source.swf";
args["width"] = "90";
args["height"] = "90";
args["expanded_width"] = "398";
args["expanded_height"] = "224";
args["icon"] = "http://static.ak.fbcdn.net/rsrc.php/yj/r/v2OnaTyTQZE.gif";
args["caption"] = "caption";
args["description"] = "description";
dynamic result = fbApp.Api("/me/feed", args, HttpMethod.Post);
结果返回一个有效的 PostId,除了我的 Flash 电影之外,所有内容都在那里。图像也不显示。
我在这里缺少什么?我知道我的语法已关闭,但有人使用新的 Graph API 成功将 Flash 影片发布到用户墙上吗?
I am trying to figure out how to post a flash movie to a user's wall using the Graph API in C#.
These are the args I'm passing in:
args["message"] = "My Message";
args["name"] = "SOME TEXT";
args["link"] = "http://www.example.com";
args["picture"] = "http://www.example.com/source.jpg";
args["source"] = "http://www.example.com/source.swf";
args["width"] = "90";
args["height"] = "90";
args["expanded_width"] = "398";
args["expanded_height"] = "224";
args["icon"] = "http://static.ak.fbcdn.net/rsrc.php/yj/r/v2OnaTyTQZE.gif";
args["caption"] = "caption";
args["description"] = "description";
dynamic result = fbApp.Api("/me/feed", args, HttpMethod.Post);
The result is returning a valid PostId back and everything is there with the exception of my Flash movie. The image isn't showing either.
What am I missing here? I know my syntax is off but has anyone successfully posted a Flash movie to a user's wall using the new Graph API?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,您无法组合所有这些参数。您只能发布图像、链接、来源或消息之一。但我不知道哪一个优先。
As I understand it, you can't combine all those parameters. You can only post one of image, link, source, or message. I don't know which one takes priority though.