android - Google Play URL messes up Facebook's share dialog -


i trying share image title , description on facebook looks when set google play url contenturl title , description not displayed.

this code:

if (sharedialog.canshow(sharelinkcontent.class)) {     sharelinkcontent linkcontent = new sharelinkcontent.builder()       .setcontenttitle("i want car")       .setcontenturl(uri.parse("http://www.producthunt.com"))       .setimageurl(uri.parse("http://www.topgear.com/uk/assets/cms/50b95ad3-7884-4b3d-ba3c-68dbeff8b737/large%20image%20(optional).jpg"))       .build();     sharedialog.show(linkcontent); } 

the result:

enter image description here

but when set google play url contenturl:

if (sharedialog.canshow(sharelinkcontent.class)) {       sharelinkcontent linkcontent = new sharelinkcontent.builder()          .setcontenttitle("i want car")          .setcontentdescription("this description should displayed below image somehow depends on link.")          .setcontenturl(uri.parse("https://play.google.com/store/apps/details?id=com.evernote"))          .setimageurl(uri.parse("http://www.topgear.com/uk/assets/cms/50b95ad3-7884-4b3d-ba3c-68dbeff8b737/large%20image%20(optional).jpg"))          .build();    sharedialog.show(linkcontent); 

}

the result:

enter image description here

i tried other general , google play links , got same result. what's wrong?

edit

i submitted question facebook team , though admitted bug told won't fix time soon. https://developers.facebook.com/bugs/1435972263375939

i found 1 partial solution may work depending on requirements. replace "https://play.google.com/store/apps/details?id=com.xxx.yyy" redirect address. used 1 created in facebook app configuration "https://fb.me/xxxxxxxxxxxxxxx". result of share working correctly custom contentdescription. remaining issue preview not working in "share facebook" popup ("a preview added after post facebook"). if don't worry users seeing preview solution may work you.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -