Per-bundleid Facebook iOS url scheme -


i have encountered unfortunate design issue facebook ios sdk. problem our company produces many branded apps same prototype codebase (think restaurant ordering) need interact same facebook app.

the problem if user has multiple brands installed on phone, url schemes conflict , when authenticating 1 app, user may returned wrong app!

i looked facebook's url scheme suffixes, documentation says multiple suffixes searched in order (!), not relative corresponding bundle id. horrible. if associated suffix particular bundle id, our problem go away, documented, place precedence on brands on other brands, no better default behavior.

is there way associate url scheme suffix specific bundle id?

you can explicitly specify suffix each app setting facebookurlschemesuffix in application's plist. when happens, purposes of login , share dialog, facebook app know right suffix use.

the time searches down list of suffixes deep linking, may or may not use.

in case, might want have different app ids anyways @wizkid recommends since you'll able analytics each app, , becomes easier maintain.


Popular posts from this blog