I am developing an Android app with a share button. It shares a web URL using an Android Intent that invokes the system chooser. When the Twitter app is also installed, it shows in the chooser as a target for the share. PROBLEM: When Twitter is selected, the URL is shared but it does not utilize the Twitter card meta tags that are in the webpage URL that is being shared.
The URLs have been validated using the Twitter card validator. Also, when the same URLs are shared on twitter.com, the Twitter card meta tags are discovered and processed properly. Looks to be only an issue when sharing on Android from another app.
Here is a code snippet of how we are sharing:
Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, Uri.parse("http://my.website/page1")); sendIntent.setType("text/plain"); startActivity(sendIntent);
Any ideas how to get the sharing from Android to utilize the twitter card meta tags from the shared URL?
Thanks in advance!