2012-06-22 22 views

Respuesta

10
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 

por ejemplo,

fb://post/(postId) 

Entonces llama así:

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

Fuente con las porciones más ejemplos: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

+0

Esto no parece funcionar en iOS 6 - fb: // *** abre el Facebook Aplicación, pero no en el contenido especificado. – Jamie

+0

Sí, la integración de iOS6 y Facebook rompió la mayoría de los esquemas de URL de Facebook. – danielbeard

+1

¿Qué tal una página de negocios? Normalmente sería www.facebook.com/mybusiness. – QED

Cuestiones relacionadas