使用 Feed 对话框设置发布到 Facebook 的 SWF 的大小

发布于 2024-12-23 07:31:03 字数 240 浏览 4 评论 0原文

有没有办法使用 feed 对话框(javascript 或直接 url 方法)设置发布到 Facebook 的 swf 的尺寸?

https://developers.facebook.com/docs/reference/dialogs/feed/

Is there a way to set the dimensions of a swf posted to Facebook using the feed dialog, either javascript or direct url method?

https://developers.facebook.com/docs/reference/dialogs/feed/

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

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

发布评论

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

评论(1

娇纵 2024-12-30 07:31:03

我不能 100% 确定这是否有效,因为我尝试使用 Feed 对话框而不是共享器添加它,但它似乎根本没有任何效果。它可能已被较新的提要对话框 API 中的源参数替换(我认为您无法为其定义宽度/高度。如果我错了,请纠正我)..

但是,
查看流附件指南中的媒体附件:

https://developers.facebook.com/ docs/guides/attachments/

您将传入一个 JSON 编码对象作为 media URL 参数。

{"media": [{
    "type": "flash", 
    "swfsrc": "http://www.mapsofwar.com/photos/EMPIRE17.swf", 
    "imgsrc": "http://icanhascheezburger.files.wordpress.com/2009/04/funny-pictures-hairless-cat-phones-home.jpg", 
    "width": "80", 
    "height": "60",
    "expanded_width": "160", 
    "expanded_height": "120"
}]}

I'm not 100% certain that this works anymore as I've tried to add this with the Feed dialog as opposed to the sharer and it seemed to have no effect at all. It may have been replaced by the source parameter in the newer feed dialog API (which I don't think you can define a width/height for. Please correct me if I'm wrong) ..

but,
take a look at media attachments in the stream attachment guide:

https://developers.facebook.com/docs/guides/attachments/

you would pass in a JSON encoded object as the media URL param.

{"media": [{
    "type": "flash", 
    "swfsrc": "http://www.mapsofwar.com/photos/EMPIRE17.swf", 
    "imgsrc": "http://icanhascheezburger.files.wordpress.com/2009/04/funny-pictures-hairless-cat-phones-home.jpg", 
    "width": "80", 
    "height": "60",
    "expanded_width": "160", 
    "expanded_height": "120"
}]}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文