Pass parameters to Facebook App Link from Android App
<p>I am sharing content (such as text, image and app link) to Facebook with following code:</p>

<p><strong>Step 1:</strong></p>

<pre><code>public void setupFacebookShareIntent() {

    ShareDialog shareDialog;

    FacebookSdk.sdkInitialize(getApplicationContext());
    shareDialog = new ShareDialog(this);

    ShareLinkContent linkContent = new ShareLinkContent.Builder()
            .setContentTitle(title)
            .setContentDescription(
                    text1+ " " +text2)
            .setContentUrl(Uri.parse("http://example/folder"))
            .setImageUrl(Uri.parse(path1))
            .build();

    shareDialog.show(linkContent);
}
</code></pre>

<p>Also here the app link metadata:</p>

<p><strong>Step 2:</strong></p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;meta property="al:android:url" content="sharesample://story/1234"&gt;
    &lt;meta property="al:android:package" content="com.mypackage"&gt;
    &lt;meta property="al:android:app_name" content="ShareSample"&gt;
    &lt;meta property="og:title" content="example page title" /&gt;
    &lt;meta property="og:type" content="website" /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>And here the code to handle incoming app link in Activity:</p>

<p><strong>Step 3:</strong></p>

<pre><code>Uri targetUrl = AppLinks.getTargetUrlFromInboundIntent(this, getIntent());

        if (targetUrl != null) {

            // If you need to access data that you are passing from the meta tag from your website or from opening app you can get them from AppLinkData.
            Bundle applinkData = AppLinks.getAppLinkData(getIntent());
            String id = applinkData.getString("id");

            // You can also get referrer data from AppLinkData
            Bundle referrerAppData = applinkData.getBundle("referer_app_link");

        } else {
            // Not an applink, your existing code goes here.
        }
</code></pre>

<p>How can I pass data to app link url properly in <em>step 1</em>, such as simple string parameters and then get back in <em>step 3</em>?</p>