From the last post we have seen how to integrate with Twitter, In this post we are seeing how to get the ReTweeting, follow, tweet to specific account and to specific # Tags functionality.
Need to include the JS script that is available from the twitter API library and to include that in the XPages. Sample is as follows
// Tweet to specific
<script>
!function(d,s,id){ var
js,fjs =d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js =d.createElement(s);js.id=id; js.src =”https://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);
</script><a
href=”https://twitter.com/intent/tweet?button_hashtag=TwitterStories”;
data-related= “linoygeorge”>
Tweet #TwitterStories
</a>// To Follow me
<script>
!function(d,s,id){ var
js,fjs =d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js =d.createElement(s);js.id=id; js.src =”//platform.twitter.com/widgets. js”;fjs .parentNode.insertBefore(js, fjs);}}(document,”script”,”twitter- wjs”);
</script>
Leave A Comment