Home > Server, Webmaster > Tweet url with space

Tweet url with space

To share content and connect on Twitter from website it’s possible to use :

1)
<a href="http://twitter.com/share?url=myUrl&amp;text=myText&amp;hashtags=myhash1,myhash2">Tweet</a>.

or

2) 
<a href="http://twitter.com/intent/tweet?url=myUrl&amp;text=myText">Tweet</a>

or

3)
<a href="http://twitter.com/home?status=myText+-+http://myUrl">Tweet</a>

url contains space

If url ( myUrl in this example)  contains space there are some troubles url can be truncated or not showed. So if url (myUrl) is the same Url of the page, the solution is not to specify url=myUrl using:

1) 
<a href="http://twitter.com/share?text=myText&amp;hashtags=myhash1,myhash2">Tweet</a>

url contains query string

if url contains query string is better to use case 2 )

Some examples:

Using case 1)

http://twitter.com/share?text=Everyware Server On Premises M2M Cloud&url=http://www.eurotech.com/en/quickviews/product/everyware server&hashtags=eurotech,cloud

Url is not showed

Everyware Server On Premises M2M Cloud #eurotech #cloud
url is not shown

url is not shown

and this is the url encoded by twitter

https://twitter.com/intent/tweet?hashtags=eurotech%2Ccloud&text=Everyware+Server+On+Premises+M2M+Cloud&url=http%3A%2F%2Fwww.eurotech.com%2Fen%2Fquickviews%2Fproduct%2Feveryware+server

no change for the better using

http://www.eurotech.com/en/quickviews/product/everyware+server

or

http://www.eurotech.com/en/quickviews/product/everyware%20server

Without using url=

http://twitter.com/share?text=Everyware Server On Premises M2M Cloud&hashtags=eurotech,cloud

Url is showed

Everyware Server On Premises M2M Cloud http://www.eurotech.com/en/quickviews/product/everyware%20server #eurotech #cloud

 

twitter url shown

twitter url shown

Resources:

  1. Non c'è ancora nessun commento.
  1. No trackbacks yet.

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: