Well, this is a very simple technique if you want to put a share button/text for a specific URL to be shared on social sites like facebook, twitter, google+
If you want to share the site thisdayinbangladesh.com to any of the above mentioned social site then just click on the following texts. The technique behind it, is simply passing the URL and/or text with specific pattern as parameter(s) to the share processor URL of one of those social sites.
<a href="https://www.facebook.com/sharer/sharer.php?u=http://thisdayinbangladesh.com&t=Check This Blog" target="_blank">Share this site in facebook</a>
<a href="https://twitter.com/intent/tweet?text=Check This Blog&url=http://thisdayinbangladesh.com" target="_blank">Tweet this site in twitter</a>
<a href="https://plus.google.com/share?url=http://thisdayinbangladesh.com" target="_blank">Publicize this site in Google+</a>
As you know already that, Google News search API has been deprecated few years ago. Still developers need to have Google news as an usable format like JSON for different purpose & development platforms.
Google still provides the news service but in rss format. So, we can have those data for using just by parsing and reformatting them. I wrote a very small php class which will first search news on Google by specific keywords and load the XML. Then it will parse the XML carefully to dissect parts of news & finally will provide a formatted JSON data set.
As of JSON, all knows that how universal this data format is to implement on several software development platforms. Hope this tiny class help some one 🙂