Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
I have created a songs applictaion where user can upload there song with image and title. Now i want to add a functionality to share song on social media. For this my code is: 
<pre lang="Javascript"><a href="http://www.facebook.com/sharer.php?u=http://www.[DELETED].com/Home/Index"
title="share on facebook" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600');return false;">


This share only Url.But i want to share image and title of Song along with this url. Can anyone has any solution.
Thanks.

What I have tried:

<a href="http://www.facebook.com/sharer.php?u=http://www.[DELETED].com/Home/Index"
title="share on facebook" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600');return false;">
Posted
Updated 27-Nov-18 20:32pm
v2
Comments
OriginalGriff 28-Nov-18 2:33am    
I removed your URL so you don't get flagged as a spammer - it was touch and go when it was caught by the automated system anyway.
Being flagged as a spammer (and that URL looks very spammy) will result in you being thrown off the site, and not all members are as generous as I can be. I'd strongly suggest you avoid the particular URL in all future posts, as it will be treated as spamming.

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



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