“fb://” url scheme - official or not?

后端 未结 2 384
轻奢々
轻奢々 2020-12-17 18:25

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

2条回答
  •  一向
    一向 (楼主)
    2020-12-17 18:52

    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

    • The Facebook iOS SDK
    • Here on StackOverflow
    • A tutorial on how it works (not Facebook-specific)

    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.

提交回复
热议问题