How do I launch twitter app from web button?


I have an embedded hashtag button on my website. When I open the site on my iPhone and tap the button, rather than it opening my twitter app, it opens a new tab and asks me to sign into twitter. Is there a way to automatically open the app, or if not installed, then redirect to the webpage?

<a href="" class="twitter-hashtag-button" data-size="large" data-related="uakron" data-url="">Tweet #RethinkingRace</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);;js.src=p+'://';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>




Try ?