简体   繁体   中英

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. 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM