Hey,
I’m trying to let users post a tweet that they themselves edit on the site using a form. I’ve got everything working, including adding a hashtag and URL to the tweet - what I’m struggling to get working is the related account.
I’m using this code:
<form name="tweet" >
<textarea wrap="on" type="textarea" id="community" name="text" value="" >I nominate @USERNAME for Community Manager of the Year #hashtag</textarea>
<input type="submit" class="button" value="Nominate" onclick="loadCommunity()"/>
</form>
<script>
function loadCommunity() {
var theCommunity = document.getElementById('community').value;
window.open('https://twitter.com/intent/tweet?url=http://website.com/awards&hashtags=hashtag&text='+ theCommunity +'&related=account', 'sharer', 'toolbar=0,status=0,width=620,height=280');
}
</script>
As you can see, the &related is appended to the URL. I’ve tested the functionality and the URL does indeed included the related data, but for some reason the pop-up window does not suggest the account to follow. The website I’m working on it here: http://t.co/xYykUj6hOj