I wanted to share a url which contains both english and urdu words. After tweeting, the url gets misaligned. We assume tweeter recognise the whole content as urdu and so it writes it from right to left.
Url : https://ruralindiaonline.org/articles/آزادی-کی-دس-کہانیاں/
But this is how it comes on sharing the tweet.
[![enter image description here][2]][2]
Kindly help us on this.
It looks like Twitter is getting confused here.
You need to URL Encode the Urdu portion of the URL - for example:
https://ruralindiaonline.org/articles/%D8%A2%D8%B2%D8%A7%D8%AF%DB%8C-%DA%A9%DB%8C-%D8%AF%D8%B3-%DA%A9%DB%81%D8%A7%D9%86%DB%8C%D8%A7%DA%BA
Related
I am trying to prefill a twitter post using http://twitter.com/?status=
The problem I have is that I would like to include a link in the message that will be display as a clickable link rather than just text.
My approach below doesn't work:
Share on Twitter
Is there any way to achieve this?
You need to use URL encoding - https://en.wikipedia.org/wiki/Percent-encoding - and you don't need to add an HTML <a href....
For example
http://twitter.com/?status=Click%20here%20https%3A%2F%2Fexample.com%2F
You cannot change how the link displays.
I need to format this canonical URL and I cant figure out how! I've looked around the web and this site a lot and I've realized that I need a specific answer.
Problem Description:
My BLOG's desktop view has (say) URL: www.x.com/page.html
The same page in mobile view URL would be: www.x.com/page.html?m=1
Its all good and dandy to this point, but the problem comes when I use facebook comments with this. It parses url based on this: www.x.com/page.html
So, it is identifying ?m=1 in the end of the first URL as an entirely different URL.
i.e
It is treating those two URL as different
Both of them are URL for the same page and I want them to be treated the same
Could anyone provide me a way to check if the loading page is ?m=1 and if it is ?m=1 then remove the ?m=1 when sending it to facebook?
I WOULD GREATLY APPRECIATE IT IF THE SOLUTION IS INLINE if it is not inline, oh well, I just need a solution right now.
Current code snippet used is this:
<fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' height='110' width='560'/>
Let me break the question into small parts(incase someone is not a native speaker and wants to help/learn about this problem)
I want to detect if the loading page has ?m=1 in its URL or not. The canonical URL for this is data:post.url applied as
expr:href='data:post.url'
If a ?m=1 is detected from data:post.URL , I want to remove it and send the remaining URL into expr:href= so that both my URLs
are identified the same when my website displays facebook comments.
Click the image link below to look at this image please. This is the same URL but the
comments are being sent to me as if they're from different URLs. I
want them to appear under the same thread.
This is it--> http://i.stack.imgur.com/M7fK2.png
I haven't found this particular answer anywhere and I am hopeful that
some creative solutions will pop out in this site!
In your code
<fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' height='110' width='560'/>
Use data:post.canonicalUrl instead of data:post.url
This is the Blogger's layout tag for getting the Canonical URL of a blog post (This will always default to the blogspot.com domain, so there won't be ccTLD issues as well)
How can I manually extract the Youtube Download Link?
e.g:
I have this link: htps://www.youtube.com/watch?v=fLexgOxsZu0
I want to get this: http://r9---sn-aigllnez.googlevideo.com/videoplayback?mm=31&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cnh%2Cratebypass%2Csource%2Cupn%2Cexpire&mt=1411895530&id=o-AKzM1sExgAGdv0QN2N34ecTX7Vlwq-aee6o_sdj6Bg-k&expire=1411917209&upn=Et19mkCyt_U&fexp=927622%2C930666%2C931983%2C932404%2C934030%2C946023%2C947209%2C951912%2C952302%2C953801&nh=IgpwcjAyLmxocjE0KgkxMjcuMC4wLjE&key=yt5&ip=2a02%3A2498%3Ae000%3A85%3A225%3A90ff%3Afe67%3A97dc&itag=18&source=youtube&sver=3&mv=m&ratebypass=yes&initcwndbps=1296250&ms=au&ipbits=0&signature=7E977EA99135A34A09B780745FB4D4E7654160B2.F6234488D50CEFFFF741A7F30D0001034DD67D6D&title=Bruno+Mars+-+The+Lazy+Song+%5BOFFICIAL+VIDEO%5D
How can I get the second Link?
What is the working Download Link above and what did I exactly extract below?
Thanks a lot in advace
Sorry for my bad english
this will give you all download links in URL encoded form.
http://www.youtube.com/get_video_info?video_id=VIDEO ID GOES HERE
I was looking through different forums, but didn't find anything related to my small issue...
Clickable title google.com
And the google.com is gonna be of small font and gray color.
Is it possible somehow to hide/edit/ask LinkedIn not to show that small gray formatted domain of the submitted link? It's pretty crucial for my project, and any help would be highly appreciated...
This isn't possible using the LinkedIn API (nor using the website). The only thing I could think of would be to use your own URL shortener and share that link instead.
I googled a lot about how to make twitter media preview for my website entities if they are linked in a tweet like images below:
Any idea where can I find some documentation about it? Or a tutorial? Is this possible or these media/site previews are hardcoded in twitter?
EDIT:
so, what I need:
If someone links my site on twitter, my widget appear under the tweet, like below:
UPDATE 2012-06-13
It appears this is an Expanded Tweet - -what the requirements are to integrate these expansions into Twitter are do not appear to be displayed - but this sure is interesting.
Nope your in luck. They're not hardcoded into Twitter, they're available in the JSON response. You actually have in your post the word you need to google for entities.
You can add include_entities=1 to the end of most REST api calls and it will give you expanded information about the URL's contained within the JSON. It will split out all the URL's where you can parse out the Youtube links for example. The JSON also includes a special media_url entity but it only works for pictures. In any case, you can still parse out the media easily like youtube with a regex match because you get the URL's split out nicely with this include_entities=1 parameter.
example call :
http://api.twitter.com/1/statuses/user_timeline.json?screen_name=twitterapi&include_entities=1
more documentation : https://dev.twitter.com/docs/tweet-entities
answer edited below based on clarification:
Editing Twitter itself with previews is impossible and it's also ineffective. 75% of traffic to Twitter happens outside of Twitter.com. However the most probable solution to achieving this request would be to download a browser extension.
This extension for example enbales previews of webpages directly in the users stream content preview pane on Twitter.com
https://chrome.google.com/webstore/detail/oijgblonhcagdhfbgjilnpjipmijimmn