Changed URL on dev.twitter.com and now twitter share button does not work.
HTML code did not change:
</style>
<script src="http://justicemugshots.com/ktve/jquery.js"></script>
<script src="http://platform.twitter.com/anywhere.js?id=zzzzzbI5T4WfhsbX0ghBjuQ&v=1"></script>
<script type="text/javascript">
twtter.anywhere(function (T) {
T.bind("authComplete", function(e, user){GetUnity().SendMessage("Twitter", "AuthComplete");});
});
function connect(){
var url = "https://oauth.twitter.com/2/authorize?oauth_callback_url=" + encodeURIComponent(location.href) + "&oauth_mode=flow_web_client&oauth_client_identifier=4QZbI5T4WfhsbX0ghBjuQ";
var F = 0;
if (screen.height > 500) {
F = Math.round((screen.height / 2) - (250))
}
// The window option is a default for @AnyWhere
window.open(url, "twitter_anywhere_auth", "left=" + Math.round((screen.width / 2) - (250)) + ",top=" + F + ",width=500,height=500" + ",personalbar=no,toolbar=no,resizable=no,scrollbars=yes");
}
//url will be something like "https://api.twitter.com/1/statuses/update.json". You must url encode the parameters.
function post(url) {
$.ajax({ type: "post",
url: url+ "&oauth_access_token="+encodeURIComponent(localStorage.getItem("twttr_anywhere")),
success: function (e) {
GetUnity().SendMessage("Twitter", "PostSucceeded", "");
},
error: function(er) {
GetUnity().SendMessage("Twitter", "PostFailed", "");
}
});
}