是否有为社交网站编写的应用程序的技术限制摘要?
我正在开发一个针对 Facebook、MySpace 以及其他可能的小部件,可能是在 Flash 中。 有人看过不同网站上的技术限制摘要吗?
有人告诉我 FB 不允许嵌入 swf 链接到外部站点,并且 MS 不允许 JS。 不过,这听起来有点模糊和粗略。 显然,我可以查看每个站点的 API,或者构建一些测试应用程序,但也许有人写了一个列表。 (谷歌没有帮助。)
I'm working on a widget targeted for Facebook, MySpace, and perhaps others, probably in flash. Has anyone seen a summary of technical limitations on the different sites?
I'm being told that FB doesn't allow emebedded swfs to link out to external sites, and that MS doesn't allow JS. It's sounding a bit vague and sketchy, though. I can obviously go look at the API for each site, or build some test apps, but maybe there's a list someone's written. (Google didn't help.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,这些平台都经常变化,并施加独特的、有时甚至是复杂的限制。
我不知道有任何文档讨论单个平台的局限性,而且此类文档无论如何都可能很快就会过时。
了解可能出现的限制的最佳方法是了解所涉及的安全问题。 例如,MySpace 不允许小部件运行 javascript,因为它将在用户的安全 myspace 会话的上下文中运行。 Blogger 允许使用 JavaScript,因为每个博客都位于子域上,而 JavaScript 无法访问根域。 Facebook 允许使用经过仔细清理的自定义版本的 JavaScript,以防止应用程序劫持用户的会话。
了解可以做什么的最快方法可能就是尝试每个网站上的小部件。
Unfortunately each of these platforms change frequently and impose unique and sometimes complex restrictions.
I'm not aware of any documents that discuss limitations of individual platforms, and such documents could become rapidly become outdated anyway.
The best way to come to understand what limitations to expect might be to build an understanding of the security issues involved. For example, MySpace does not allow widgets to run javascript because it would run in the context of the user's secure myspace session. Blogger allows javascript because each blog is on a subdomain and javascript is not able to access the root domain. Facebook allows a custom version of javascript that is carefully sanitized to prevent applications from hijacking the user's session.
The quickest way to get an idea of what can be done would probably be to just try out the widgets on each of these sites.
您可以在 Facebook 应用程序中使用 Flash。 很多人都会
https://developers.facebook.com/docs/guides/canvas/
You can use flash in a facebook app. Lots of people do
https://developers.facebook.com/docs/guides/canvas/