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

I have created twitter button and added below code to work it. Its working fine.
Now I want to an image with this tweet. Any one knows, How to add image in tweet?
Please tell me if any one have done this.


JavaScript
<script>
    $("#aTwitter").click(function () {
        var url = encodeURIComponent("@TempData["AppUrl"]\n#hashlink");
        var text = encodeURIComponent("I am loving the @TempData["AppName"] !\n Download it today: ");
        window.open("https://twitter.com/home?status=" + text + url,
            'twitter-tweet-dialog','width=626,height=436');
        return false;
    });

</script>


What I have tried:

I have tried to create tweet button on my website and have done it properly but not able to add image in the same tweet.Your little help will save my time .....
Posted

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