質問

FBDialogs presentations can have a link as NSURL and picture as NSURL as parameters. But how to make clicking the post on the mobile to link back to iOS App if installed (to AppStore if not) and to some web page when accessed from the browser?

I've got the URL scheme of fb[app_id] set. What to do next? How to use it to launch my app when clicking the post?

Thanks!

役に立ちましたか?

解決 2

Will answer myself the question. What was missing in my understanding, is that clicking the post from a web will open the link that I share with - FBDialogs presentShareDialogWithLink: name: caption: picture:, whereas clicking it on iPhone will open my app and not that link, if deep linking is turned on in FB's app settings.

他のヒント

add this method in appdelegare class

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    return YES;
}
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top