VizGhar
VizGhar

Reputation: 3128

Firebase dynamic links with Facebook app

I'm currently trying to use Firebase dynamic links (deep links). Core of the application should share the link on social media.

I've successfully created Short Link (200 OK) shared the link to both G+ and Facebook. But there is a problem

I'm using http scheme as suggested on Android developers site:

    <activity android:name=".LinkActivity">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="http" android:host="..."/>
        </intent-filter>
    </activity>

So How can I properly use Firebase dynamic link with Facebook app?

Upvotes: 2

Views: 4361

Answers (1)

Alex Bauer
Alex Bauer

Reputation: 13613

Facebook uses App Links tags for launching other apps (and only on Android — it's been broken on iOS for almost a year). Firebase does not automatically host App Links tags for Dynamic Links, so this is the expected default behavior on Android.

There is no way to manually specify these tags in Firebase, so you'll need to host them yourself on your fallback URL, which Firebase will then scrape and pass through. Alternatively, you can take a look at Branch.io (full disclosure: I'm on the Branch team), which hosts App Link tags be default.

Upvotes: 5

Related Questions