mbb
mbb

Reputation: 3110

Twitter intent tweet adding forward slash

I'm following the API guidelines to make a tweet:

http://twitter.com/intent/tweet?text=Don%27t+hide+your+incessant+curiosity%2E+Exclaim+it%2E+%23quote+http://itechthereforeiam.com+via+@mjbrender

But it keeps appending a '/' to the end:

Don't hide your incessant curiosity. Exclaim it. #quote http://itechthereforeiam.com via @mjbrender/

I found a few conversations headed this direction, but nothing answering the question.

Thanks for helping.

Upvotes: 2

Views: 1060

Answers (2)

David VANTYGHEM
David VANTYGHEM

Reputation: 89

It's because you don't URL-encode MyURL. Try this :

https://twitter.com/intent/tweet?text=Don%27t+hide+your+incessant+curiosity.+Exclaim+it.+%23quote+http%3A//itechthereforeiam.com+via+@mjbrender

Upvotes: 3

Kevin
Kevin

Reputation: 56

Don't know if you ever got this to work, but I moved the via statement to the "front" and it got rid of the slash.

For example:

https://twitter.com/intent/tweet?via=UserName&url=http://MyURL.com&text=Share your Story and Win!&hashtags=myHashTag&

I previously had the via tag at the end and it would product the slash. With this code, the via still appears at the end, rather than the beginning of the message, just without the trailing forward slash.

Hope this helps!

Upvotes: 4

Related Questions