Duplicate of this post with a link to a Facebook bug report where Facebook confirms the behavior and states that they probably won't fix it.
As for how other applications are getting that behavior, I have a guess.
If you're application has a website that you can add a dummy page to then you could do the following:
<html>
<head>
<script type="text/javascript">
window.location.replace('https://play.google.com/store/apps/details?id=com.example.client');
</script>
</head>
<body></body>
</html>
Then use setContentUrl(Uri.parse("https://example.com/android")
for your ShareDialog
where the url opens a page that serves the HTML above.
This will automatically send users to your Google Play Store page when they open that page. The back button should still work as if they went straight to the Google Play Store page as well.
I tried just using an HTTP redirect instead of actually having to host the page but that didn't work.
EDIT: You can include AppLinks meta tags in the page header to skip the redirect on Android devices.
<html>
<head><title>App Link</title>
<meta property="fb:app_id" content="XXXXXXXXXXXXXXX"/>
<meta property="al:ios:url" content="example://test"/>
<meta property="al:ios:app_name" content="Example App"/>
<meta property="al:ios:app_store_id" content="XXXXXXXXX"/>
<meta property="al:android:package" content="com.example.client"/>
<meta property="al:android:app_name" content="Example App"/>
<meta property="al:android:url" content="example://test"/>
<meta property="al:web:should_fallback" content="false"/>
<meta http-equiv="refresh" content="0;url=http://play.google.com/store/apps/details?id=com.example.client"/>
</head>
<body>Redirecting...</body>
</html>
This shows you how to handle the link in your app.
<activity
android:name="com.example.client.MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<data android:scheme="example"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
</intent-filter>
</activity>
If the app isn't installed on the device then you get sent to the Google Play Store (albeit through a very ugly popup which doesn't happen in the normal ShareDialog flow when a Play Store link is used directly).
Additionally, Facebook will create and host the page for you if you want that. The example HTML above is from one of their hosted pages (note the different implementation of the redirect).