Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

From my asp.net website i wanted to share some content into facebook. after sharing it displays wrong images in facebook. i came to know that the images which are mentioned in meta tags of my website are displayed in facebook but i don't want to display those meta tag images. i want to display my own image. Anybody please give solution for this issue..
The javascript code which is used in my website for facebook sharing is below.

window.open('https://facebook.com/sharer.php?s=100&p[title]=mywebsitename&p[summary]=my content&p[url]=http://www.mywebsite.com&p[images]0]=http://www.mywebsite.com/Images/myownimage.png', 'facebook-share-dialog', 'width=626,height=350');

Thank you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900