简体   繁体   中英

App icon is not showing on Facebook share dialog

I am sharing my google play store application link from my Android Application to Facebook.

But, facebook ShareDialog only display my app name and does not display app icon in that post.

Here is my code:

ShareDialog shareDialog = new ShareDialog(ScoreBoardActivity.this);
ShareLinkContent content = new ShareLinkContent.Builder()
        .setContentUrl(Uri.parse("https://play.google.com/store/apps/details?id=aaa.aaa.aaaa"))
        .setQuote("See if you can beat my sorting score " + score + "!")
        .build();
shareDialog.show(content, ShareDialog.Mode.FEED);

My app is published today.

Please let me know where I am doing wrong? Thanks!

It seems there is some problem in your link. Try to change your link from:

https://play.google.com/store/apps/details?id=aaa.aaa.aaaa

to:

https://play.google.com/store/apps/details?id=aaa.aaa.aaaa&hl=en

Just append &hl=en at the end of you package name. It works for me.

I faced the same issue few days ago. I don't know this solution will work for you or not but give it a try once. And make sure you have added all the graphics in your facebook developer console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM