Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS Facebook App URL fb:// options besides publish

Tags:

ios

facebook

There have been a couple of postings on this but it does not answer my direct question.

Currently we ware using the code like:

NSString *post = [NSString stringWithFormat:@"fb://publish/profile/me?text=%@",@"Some Link"];
BOOL canOpenURL = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:post]];

if ( canOpenURL && ![Utils isipad] && hFaceBookCheckAppFirst ) 
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:post]];

etc. This works fine for positing. It starts up the Facebook App and then the user can post, etc.

What are the other verbs that can be used instead of

fb://publish

Can't seem to find the docs on this. Does not seem to be in the Facebook SDK docs, which brings up the web interface.

like image 843
ort11 Avatar asked Feb 22 '23 12:02

ort11


2 Answers

This website lists all of the verbs associated with the fb:// handler.

Oddly I couldn't find this info on Facebook's site.

like image 51
Michael Pryor Avatar answered Feb 24 '23 00:02

Michael Pryor


 fb://page/<id> 

This works on iPhones.

like image 32
ort11 Avatar answered Feb 24 '23 01:02

ort11