Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to deep link to a specific page or location in the Facebook mobile app on iOS?

Tags:

ios

facebook

Is it possible to include a link inside my mobile app that opens the native Facebook app to a specific page, event, post, or other location?

Thanks, Ryan

like image 627
rrhoover Avatar asked Jun 22 '12 01:06

rrhoover


1 Answers

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

E.g.

 fb://post/(postId)

Then call like this:

NSURL *url = [NSURL URLWithString:@"fb://<insert function here>"];
[[UIApplication sharedApplication] openURL:url];

Source with LOTS more examples: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

like image 100
danielbeard Avatar answered Oct 23 '22 15:10

danielbeard