7

モバイル アプリ内に、ネイティブの Facebook アプリを開いて特定のページ、イベント、投稿、またはその他の場所へのリンクを含めることはできますか?

ありがとう、ライアン

4

1 に答える 1

11
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

例えば

 fb://post/(postId)

次に、次のように呼び出します。

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

より多くの例を含むソース: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

于 2012-06-22T01:59:11.143 に答える