Neeraj
Neeraj

Reputation: 519

Posting an app link on Facebook wall, is not showing correct icon?

I am trying to share an app link from Google play store to my Facebook wall through my app. But when the link is posted on my wall, it shows a wrong icon.

When I am clicking the link, it is redirecting me to correct place.

String message = "play.google.com/store/apps/details?id="+ mItem.getPackageName();
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("text/plain");
share.putExtra(Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(share, "Share "+mItem.getAppName()+" with your friends"));

Upvotes: 0

Views: 743

Answers (2)

Neeraj
Neeraj

Reputation: 519

I found the answer:

Instead of

String message = "play.google.com/store/apps/details?id="+ mItem.getPackageName();

I should use the following

String msg = "https://market.android.com/search?q=pname:"+ mItem.getPackageName();

Upvotes: 2

shem
shem

Reputation: 4712

Use this tool to check links you post on facebook: https://developers.facebook.com/tools/debug

Facebook usually search for image tag in the header, but it's changed from time to time

Upvotes: 1

Related Questions