문제

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