title: Android Firebase Dynamic links not working in Facebook messenger properly
body: <p>I integrated my application with dynamic links from firebase successfully. But when I share a short link with <code>SocialMetaTagParameters</code> and click on the link in messenger it opens the browser and it should redirected to my application, but it is entering in infinite loop in the browser.</p>
  
  <p>I found similar issue created in google groups:</p>
  
  <p><a href="https://groups.google.com/forum/#!topic/firebase-talk/nOOcOwmxl58" rel="noreferrer">https://groups.google.com/forum/#!topic/firebase-talk/nOOcOwmxl58</a></p>
  
  <p><strong>This is my code to create short link:</strong></p>
  
  <pre><code>Task&lt;ShortDynamicLink&gt; shortLinkTask = FirebaseDynamicLinks.getInstance().createDynamicLink()
      .setLink(Uri.parse(link))
      .setDynamicLinkDomain(mContext.getString(R.string.firebaseAppCode))
      // Set parameters
      .setAndroidParameters(new DynamicLink.AndroidParameters.Builder().build())
      .setIosParameters(new DynamicLink.IosParameters.Builder("com.xxxx.xxxx").build())
      .setSocialMetaTagParameters(
          new DynamicLink.SocialMetaTagParameters.Builder()
              .setTitle(title)
              .setDescription(description)
              .setImageUrl(Uri.parse(imageUrl))
              .build()
      )
  
      .buildShortDynamicLink()
      .addOnCompleteListener((Activity) mContext, new OnCompleteListener&lt;ShortDynamicLink&gt;() {
          @Override
          public void onComplete(@NonNull Task&lt;ShortDynamicLink&gt; task) {
              if (task.isSuccessful()) {
                  // Short link created
                  Uri shortLink = task.getResult().getShortLink();
  
                  ShareApp(mContext, shortLink.toString());
              } else {
                  Utils.ShowToast(mContext, "Sharing failed, Try again");
              }
          }
      });
  </code></pre>
  
  <p><strong>This is my code to share the short dynamic link:</strong></p>
  
  <pre><code>public static void ShareApp(Context mContext,String link) {
      Intent share = new Intent(Intent.ACTION_SEND);
      share.setType("text/plain");
      share.putExtra(Intent.EXTRA_TEXT,link);
      mContext.startActivity(Intent.createChooser(share, "Share..."));
  }
  </code></pre>
  
  <p>This is code in manifest :</p>
  
  <pre><code>&lt;activity
      android:name=".UI.Home.Consultants.ViewConsultantProfileActivity"
      android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
      android:label="Profile"
      android:screenOrientation="portrait"
      android:theme="@style/AppTheme"
      android:windowSoftInputMode="stateHidden"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.VIEW"/&gt;
          &lt;category android:name="android.intent.category.DEFAULT"/&gt;
          &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
          &lt;data
              android:host="consultrustconsultant"
              android:scheme="http"/&gt;
          &lt;data
              android:host="consultrustconsultant"
              android:scheme="https"/&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>Note:</p>
  
  <p>if I removed SocialMetaTagParameters, the link is working properly and when click on the link its redirected to my application </p>