Twitter Tricks and Cheat Sheet With New API – A Shortlist for Twitter Related Developers, WordPress Developers and Advanced Twitter Users for Development. There is a kind of ‘hacking’ scent but there is absolutely nothing outside legit usages. For WordPress developers, it often become difficult to understand the Twitter stuffs, this article is partially for them.
Twitter Tricks and Cheat Sheet With New API : Get Started
Twitter Tricks and Cheat Sheet With New API Guide demands the basic understanding of API, some knowledge on PHP and obvious ‘talent’ to search Github. Each and every link is very important. Let us start with Twitter way to tell you about the most interesting article – Get your Twitter™s Tweet as RSS and JSON with New Twitter API :
Get your Twitter™s Tweet as RSS and JSON with New Twitter API: Get your Twitter™s Tweet as¦ http://t.co/qZ33Q7yrtw
” Abhishek Ghosh (@AbhishekCTRL) July 8, 2013
That article has lot of important links and practical example of fetching Tweets can be seen live here : https://thecustomizewindows.com/Twitter-RSS-Feed/twitter_json_to_rss.php?screen_name=AbhishekCTRL So, the convention for fetching in this way is to use the pattern :
---
1 | ?screen_name=UserName |
appended after the .php file’s URI. This is not Real Time but cached. This is an pure example of the new Twitter API. Now, what are the possibilities or extended usages ? We can easily create a PHP domain based application which has a web based WYSIWYG Editor, kind of WordPress minus all other things – because we can use it to post on Twitter with excellent Twitter cards, which is never possible without a domain name. We do not know whether the Plugin works anymore or not, but there was a great Plugin to Integrate the system of Twitter hashtags in WordPress posts. So, these are some of the possible areas to extend functionalities.
Twitter Tricks and Cheat Sheet With New API : Where is Your Cheat Sheet ?
When the name of the article is – Twitter Tricks and Cheat Sheet With New API, some new things have to be listed ! The first thing is, there is a fantastic Web based or rather GET request based thing, that is known as Twitter intent :
1 | https://twitter.com/intent/ |
The account is Twitter’s account! We can easily sent a Tweet with this format :
1 | https://twitter.com/intent/tweet?text=Your-Text-in-URL-encoding-format |
So, if you go to this web address with the intention to Tweet “Hi”, you just need to go here :
1 | https://twitter.com/intent/tweet?text=Hi |
Copy paste it in a new browser window while logged in Twitter, its funny. If you Tweet this post, you’ll basically be using this URI :
1 | https://twitter.com/intent/tweet?original_referer=URI-Encoded-of-this-Webpage&related=User_Name&text=The_Text_To_Tweet&tw_p=tweetbutton&url=Origin_URI&via=User_Name |
A practical example :
1 | https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Fthecustomizewindows.com%2F2011%2F07%2Fconvert-wordpress-blog-to-iphone-app-without-knowledge-of-coding%2F&related=AbhishekCTRL&text=Convert%20WordPress%20Blog%20to%20iPhone%20app%20without%20knowledge%20of%20coding&tw_p=tweetbutton&url=http%3A%2F%2Fbit.ly%2Fok5qRk&via=AbhishekCTRL |
The Javascript and the Twitter does that work of conversion. You can directly reply if the Status ID of a Tweet is known :
1 | https://twitter.com/intent/tweet?in_reply_to=385730341497217024 |
if you swap the word favorite?tweet_id with tweet?in_reply_to , it will become fav. Basically, you need not to depend on Twitter (that’s the great point of Twitter), you can host your own script :
Thats why so big document is written :
1 | https://dev.twitter.com/terms/display-requirements |
These are helpful, because we possibly want to use Icon Font for faster loading of webpages. The last one is Twitter button. Popular follow button :
But there is no count of followers. See the first part of the snippet :
By default, the data-show-count=”false” ; make it “true” and you will get the number of followers :
This ends the small list of Twitter tricks and cheat sheet.
James Burngasser says
Excellent web site you’ve got here.. It’s difficult to find quality writing like yours nowadays.
I honestly appreciate individuals like you! Take
care!!