Reputation: 33
I am creating a deep link using Branch.io in Android as explained in Branch docs, setting an image that I'd like to be the thumb for the link:
BranchUniversalObject branchUniversalObject = new BranchUniversalObject()
.setCanonicalIdentifier(IDENTIFIER)
.setTitle("Link de Teste")
.setContentDescription("This is just a test link.")
.setContentImageUrl("https://image-link")
.setContentIndexingMode(BranchUniversalObject.CONTENT_INDEX_MODE.PUBLIC)
.addContentMetadata("key", value);
LinkProperties linkProperties = new LinkProperties()
.setFeature("sharing")
.addControlParameter("$desktop_url", "http://example.com/home")
.addControlParameter("$ios_url", "http://example.com/ios");
When I share the link with Facebook, the image appears correctly:
But when I share the link with Whatsapp, no image is displayed.
Any help? Thanks.
Upvotes: 3
Views: 2360
Reputation: 11
It worked for me, I just added $og_type, $og_image_width, $og_image_height and now it's working fine, I hope this can help you image implementation here
Upvotes: 0
Reputation: 13633
Alex from Branch.io here: this should be working in WhatsApp, and I can confirm it does as expected with a test app on my end. I suspect WhatsApp doesn't like something about the image you're providing — could be the dimensions are wrong or unspecified. You could try our $og_image_height
and $og_image_width
params and take a look Facebook's open graph debug tool for any other errors.
Upvotes: 2