Facebook iPhone 应用程序支持哪些自定义 URL 方案?
注意
这些 URL 可能不可用。
Facebook 已更新多次,但并未正式支持其中任何一个。
/Note
我正在尝试查看有关 iPhone 上的 Facebook 应用程序的可用信息。到目前为止,我发现了几个包含有限信息的网站,并且我能够弄清楚 Facebook 个人资料发布命令(不幸的是,它在您发布后使窗口保持打开状态 - 因此发布到 Facebook 的人必须推送 post< /em> 一次,然后取消)。
我的问题是,有人有关于可以发送到 Facebook 应用程序的命令的更多信息吗?
我可以从 http://wiki.akosma.com/IPhone_URL_Schemes
获得以下信息fb://profile
– 打开 Facebook 应用程序以查看用户的个人资料。fb://friends
– 打开 Facebook 应用程序到好友列表。fb://notifications
– 打开 Facebook 应用程序到通知列表(注意:此 URL 似乎存在错误。通知页面会打开。但是,无法导航到通知列表中的任何其他位置) Facebook 应用程序)fb://feed
– 打开 Facebook 应用程序的动态消息。fb://events
– 打开 Facebook 应用程序至“活动”页面。fb://requests
– 打开 Facebook 应用程序至请求列表。fb://notes
– 打开 Facebook 应用程序的“备注”页面。fb://albums
– 打开 Facebook 应用程序到相册列表。
这些命令仅打开相应的窗口。 我发现的第一个有用的命令是
fb://publish/profile/#ID#?text=#BODY#
这是 Facebook 图形 API 和我在其他应用程序上找到的一些其他信息的组合。然后一点点戳和希望。
将 #ID#
替换为您要发布到的个人资料的 ID,然后将 #BODY#
替换为您要发布到的文本,窗口将显示在Facebook 应用程序已预先填充文本。
您还可以使用 me
作为 ID 来发布到已登录用户的个人资料。
如果有人知道更多信息,我正在尝试与之交互,并希望获得尽可能多的信息。
Note
These URL's are likely not available.
Facebook has been updated a number of times and did not officially support any of these.
/Note
I am trying to see what information is available about the Facebook app on the iPhone. So far I have found a couple sites containing limited information, and I was able to figure out the Facebook Profile Publish command (unfortunately it keeps the window open after you post - so the person who publishes to Facebook has to push post once and then cancel).
My question is, does anyone have any more info on the commands that can be sent to the Facebook app?
The following information I was able to obtain from http://wiki.akosma.com/IPhone_URL_Schemes
fb://profile
– Open Facebook app to the user’s profile.fb://friends
– Open Facebook app to the friends list.fb://notifications
– Open Facebook app to the notifications list (NOTE: there appears to be a bug with this URL. The Notifications page opens. However, it’s not possible to navigate to anywhere else in the Facebook app)fb://feed
– Open Facebook app to the News Feed.fb://events
– Open Facebook app to the Events page.fb://requests
– Open Facebook app to the Requests list.fb://notes
– Open Facebook app to the Notes page.fb://albums
– Open Facebook app to Photo Albums list.
These commands only open the corresponding windows.
The first useful command I found is
fb://publish/profile/#ID#?text=#BODY#
this is a combination of the Facebook graph api and some other info I found on other application. Then a little poke and hope.
replace #ID#
with the id of the profile you want to post to, then replace #BODY#
with the text you want to post to, and the window shows up in facebook app with the text pre populated.
Also you can use me
as an id to post to the signed-in user's profile.
If anyone knows any more I am trying to interface with it and would like as much information as possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
2014 年 6 月编辑:这是 Facebook v12 的更新列表:
2013 年 4 月编辑:看起来以下内容都不再适用于最新版本、Facebook 应用导航 可能已被重写。在最新版本上进行一些逆向工程...
我想这可能会有所帮助,来自 v3.4 :
June 2014 EDIT: Here is the updated list from Facebook v12:
April 2013 EDIT : Looks like none of below works anymore with latest versions, facebook app navigation probably has been rewrited. Some reverse engineering to do on latest version...
I guess that might help, that's from v3.4 :
2017 年 10 月更新(来自 Facebook Messenger v141.0.0.25.76):
以上内容取自
com.facebook.common.fblinks.FBLinks
类。October 2017 Update (from Facebook Messenger v141.0.0.25.76):
The above is taken from the class
com.facebook.common.fblinks.FBLinks
.我有一个要求,客户希望网站上的社交共享按钮仅打开 Facebook 和 Messenger 本机应用程序。 Messenger 共享非常简单且有记录。
对于 Facebook,这是我使用的解决方法(在 Android 上测试)。
I had a requirement where the client wanted the Social Share buttons on the website to open Facebook and Messenger native apps only. Messenger share is straightforward and documented.
For Facebook, this is a workaround that I used (Tested on Android).
Facebook 实际上并不保证这些方案将继续发挥作用。然而,在撰写本文时,他们似乎已恢复为接受的答案的格式。
有一段时间,它们匹配 Android 样式方案,如第二个答案中提到的,但现在不再如此。
请谨慎使用此方案,但要充分预料到 Facebook 应用程序的更新可能会使您的应用程序不再正确链接,而只是打开主页。
Facebook doesn't actually guarantee these schemes will continue working. However at the time of writing this, it appears they've reverted back to the accepted answer's format.
For a while, they were matching the Android style scheme, as mentioned in the second answer, but this is no longer true.
Use this scheme with caution, but fully expect that an update to the Facebook app might make your app no longer properly link, but rather just open the home page.