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.
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 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.
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 :
October 2017 Update (from Facebook Messenger v141.0.0.25.76):
The above is taken from the class
com.facebook.common.fblinks.FBLinks
.