Frage

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!

War es hilfreich?

Lösung 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.

Andere Tipps

add this method in appdelegare class

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    return YES;
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top