“fb://” url 方案 - 官方还是非官方?
一些开发博客发布了有关“fb://”url 方案的信息,用于在 Facebook iPhone 应用程序中打开各种视图。无论我进行了多少搜索,我都没有从 Facebook 官方来源找到任何与此相关的字词。
由于无论如何这些信息都是公开的,我确信我不是唯一一个想知道使用此 url 方案是否得到正式批准、我是否可以使用它、它是否正常工作以及是否未批准的人是否会获得批准?大概的时间表是什么?
预先感谢您提供有关此主题的任何信息!
Some dev blogs have published information about the "fb://" url scheme for opening various views in the Facebook iPhone App. No matter how much I've searched, I haven't found one word from any official Facebook source about this.
Since the information is public anyways, I'm sure I'm not the only one who'd like to know, whether using this url scheme is officially approved, am I allowed to use it, does it work correctly, and if it's not approved, will it be and what's the approximate schedule for that?
Thanks in advance for any info on this subject!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它支持 iOS 推送通知系统(即您收到一条推送通知,上面写着“朋友的名字在照片中标记了您”,然后您点击它,它会直接带您到照片)。
我认为它不适合第三方使用,因此可能会发生变化。天啊,无论如何,Facebook 面向公众的 API 可能会随心所欲地改变,所以我对他们没有记录的东西要特别谨慎。
It's there to support the iOS push notification system (i.e. you get a push notification that says "Friend's Name tagged you in a photo", and you tap on it, it takes you straight to the photo).
I'd assume it's not intended for third party use and therefore subject to change. Hell, Facebook's public-facing APIs are subject to change on a whim anyhow, so I'd be especially cautious about something they hadn't documented.
它仅适用于 iOS。 iOS API 允许您 定义你自己的URL方案,所以Facebook一定已经开发了他们的应用程序在 iOS 设备上注册
fb://
URL 方案。这不是 Apple 创建的功能,而是您(开发人员)可以弥补的功能。您可以研究以下一些资源
您可以在 iOS 上从您自己的应用程序中使用它,但前提是安装了 Facebook 应用程序。然而,有一些插件和浏览器扩展通过处理桌面浏览器上的
fb://
架构来模仿这种行为。It's for iOS only. The iOS API lets you define you own URL scheme, so Facebook must have developed their application to register the
fb://
URL scheme on iOS devices. It's not a feature that was created by Apple, it's something you, the developer, can make up.Here are some resources you can investigate
You can use it from your own applications on iOS, but only if the Facebook application is installed. There are, however, plugins and browser extensions out there that mimic the behavior by handling the
fb://
schema on your desktop browser.