Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Twitter intent & Twitter share URLs

Tags:

twitter

I've been having some character encoding problems with twitter's text query string parameter.

a) http://www.twitter.com/share?url=http://www.example.com&text=touché

b) http://twitter.com/share?url=http://www.example.com&text=touché

a) seems to do extra encoding and the tweet comes out wrong

b) see lack of www works fine.

These both redirect to :
http://twitter.com/intent/tweet?text=touch%C3%A9&url=http%3A%2F%2Fwww.example.com

Is there a point in using http://twitter.com/share rather than simply just: http://twitter.com/intent

like image 253
topher-j Avatar asked Jul 20 '11 15:07

topher-j


People also ask

What is twitter intent?

A Tweet Web Intent makes it easy for your site visitors to compose and post a Tweet to their audience from a link on your webpage. Sites may configure Tweet text and hashtags, pass a URL, and identify Twitter accounts related to the page.


1 Answers

There is more information about the issue here and here. Use web intents without the www.

Twitter was double encoding characters in certain situations. Adding a www to the sharer url was one of those bugs. It was also happening with some of the other features as well.

like image 185
Chamilyan Avatar answered Nov 07 '22 11:11

Chamilyan