[英]how to post message on twitter wall without tweetbox using javascript / jquery
I have created application in Twitter.Now I want to post message on twitter wall. 我已经在Twitter中创建了应用程序。现在我想在Twitter墙上发布消息。 My coding is: 我的编码是:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<title>Tweet Box</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<script src="http://platform.twitter.com/anywhere.js?id=XXXXXXXXXXXXXXXXX&v=1" type="text/javascript"></script>
</head>
<body>
<div id="twitterBox"></div>
<script type="text/javascript">
twttr.anywhere(function (T) {
T("#twitterBox").tweetBox({
height: 100,
width: 400,
defaultContent: "@devirtuoso"
});
});
</script>
</body>
</html>
While I am clicing tweet button it display error:"something is technically wrong".and message does not post on twitter wall. 当我按下推文按钮时,它显示错误:“技术上有些错误”。并且消息未发布在Twitter墙上。
How to solve this error? 如何解决这个错误? how to post message on twitter wall? 如何在推特墙上发布消息? If it possible without using tweet box post message on the wall. 如果可能的话,不使用推文框在墙上张贴消息。
Please guide me. 请指导我。 Thanks in advance 提前致谢
确保调用twitter框的文件位于同一域中。...就像您创建的域名为.... http://www.yourdomainname.com的应用程序一样,那么该文件应为放在http://www.yourdomainname.com/tweet.html ...中也将该内容作为回调网址。...并进行测试...这真是小菜一碟... !!!
Your code looks fine (assuming your consumer key is right). 您的代码看起来不错(假设您的使用者密钥正确)。 Check your callback url. 检查您的回调网址。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.