[twitter-dev] Tweetbox not tweeting
Hello. I've been developing a Twitter modification for integration with phpBB3. I've registered in Anywhere, set everything up and I'm using the following code in the HTML header: lt;script src=http://platform.twitter.com/anywhere.js? id=v=1 type=text/javascriptgt;lt;/scriptgt; And this is the body: lt;!-- INCLUDE overall_header.html --gt; lt;div class=panelgt; lt;div class=innergt;lt;span class=corners- topgt;lt;spangt;lt;/spangt;lt;/spangt; lt;div style=text-align:center;margin:0 auto;gt; lt;span id=twitter-connect-placeholdergt;lt;/spangt; lt;div style=display:inline;gt; lt;div style=float:left;gt; lt;script src=http://widgets.twimg.com/j/2/widget.jsgt;lt;/ scriptgt; lt;scriptgt; new TWTR.Widget({ version: 2, type: 'profile', rpp: 4, interval: 6000, width: 250, height: 300, theme: { shell: { background: '#33', color: '#ff' }, tweets: { background: '#00', color: '#ff', links: '#4aed05' } }, features: { scrollbar: true, loop: false, live: true, hashtags: true, timestamp: true, avatars: true, behavior: 'all' } }).render().setUser('{TWIT_USR}').start(); lt;/scriptgt; lt;/divgt; lt;div style=float:right;gt; lt;div id=tboxgt;lt;/divgt; lt;script type=text/javascriptgt; twttr.anywhere(function (T) { T(#tbox).tweetBox({ height: 100, width: 400, defaultContent: Your tweet here... }); var currentUser, screenName, profileImage, profileImageTag; if (T.isConnected()) { currentUser = T.currentUser; screenName = currentUser.data('screen_name'); profileImage = currentUser.data('profile_image_url'); profileImageTag = lt;img src=' + profileImage + '/gt;; $('#twitter-connect-placeholder').append(Logged in as + profileImageTag + + screenName); } else { T(#twitter-connect-placeholder).connectButton();
Re: [twitter-dev] Tweetbox not tweeting
Hi Chaoskreator, I just tried the most simple example of setting up a Tweet box and was able to get the tweet sent to Twitter.com without issue. I don't see anything obviously wrong in your HTML. If you've connected the user, then I also assume that your callback URL specified in your application record corresponds to the subdomain and host of the server using @Anywhere. What happens when you try the simplest possible example in isolation of other Javascript? (no widgets, other frameworks, etc.) Determining that will give you a baseline to determine if it's an interaction with some other resource on your page in conflict. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Mon, Apr 19, 2010 at 10:12 PM, chaoskreator chaoskrea...@gmail.comwrote: Hello. I've been developing a Twitter modification for integration with phpBB3. I've registered in Anywhere, set everything up and I'm using the following code in the HTML header: lt;script src=http://platform.twitter.com/anywhere.js? id=v=1 type=text/javascriptgt;lt;/scriptgt; And this is the body: lt;!-- INCLUDE overall_header.html --gt; lt;div class=panelgt; lt;div class=innergt;lt;span class=corners- topgt;lt;spangt;lt;/spangt;lt;/spangt; lt;div style=text-align:center;margin:0 auto;gt; lt;span id=twitter-connect-placeholdergt;lt;/spangt; lt;div style=display:inline;gt; lt;div style=float:left;gt; lt;script src= http://widgets.twimg.com/j/2/widget.jsgt;lt;/ scriptgt; lt;scriptgt; new TWTR.Widget({ version: 2, type: 'profile', rpp: 4, interval: 6000, width: 250, height: 300, theme: { shell: { background: '#33', color: '#ff' }, tweets: { background: '#00', color: '#ff', links: '#4aed05' } }, features: { scrollbar: true, loop: false, live: true, hashtags: true, timestamp: true, avatars: true, behavior: 'all' } }).render().setUser('{TWIT_USR}').start(); lt;/scriptgt; lt;/divgt; lt;div style=float:right;gt; lt;div id=tboxgt;lt;/divgt; lt;script type=text/javascriptgt; twttr.anywhere(function (T) { T(#tbox).tweetBox({ height: 100, width: 400, defaultContent: Your tweet here... }); var currentUser, screenName, profileImage, profileImageTag; if (T.isConnected()) { currentUser = T.currentUser; screenName = currentUser.data('screen_name'); profileImage = currentUser.data('profile_image_url'); profileImageTag = lt;img src=' + profileImage + '/gt;; $('#twitter-connect-placeholder').append(Logged in as + profileImageTag + + screenName); } else { T(#twitter-connect-placeholder).connectButton(); };
Re: [twitter-dev] Tweetbox not tweeting
Also, make sure that your application is capable of both read and write access -- we have a deploy in queue that will make this easier to notice, but in the mean time you can verify and toggle the setting at http://twitter.com/oauth_clients/ Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Tue, Apr 20, 2010 at 7:47 AM, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Chaoskreator, I just tried the most simple example of setting up a Tweet box and was able to get the tweet sent to Twitter.com without issue. I don't see anything obviously wrong in your HTML. If you've connected the user, then I also assume that your callback URL specified in your application record corresponds to the subdomain and host of the server using @Anywhere. What happens when you try the simplest possible example in isolation of other Javascript? (no widgets, other frameworks, etc.) Determining that will give you a baseline to determine if it's an interaction with some other resource on your page in conflict. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Mon, Apr 19, 2010 at 10:12 PM, chaoskreator chaoskrea...@gmail.comwrote: Hello. I've been developing a Twitter modification for integration with phpBB3. I've registered in Anywhere, set everything up and I'm using the following code in the HTML header: lt;script src=http://platform.twitter.com/anywhere.js? id=v=1 type=text/javascriptgt;lt;/scriptgt; And this is the body: lt;!-- INCLUDE overall_header.html --gt; lt;div class=panelgt; lt;div class=innergt;lt;span class=corners- topgt;lt;spangt;lt;/spangt;lt;/spangt; lt;div style=text-align:center;margin:0 auto;gt; lt;span id=twitter-connect-placeholdergt;lt;/spangt; lt;div style=display:inline;gt; lt;div style=float:left;gt; lt;script src= http://widgets.twimg.com/j/2/widget.jsgt;lt;/ scriptgt; lt;scriptgt; new TWTR.Widget({ version: 2, type: 'profile', rpp: 4, interval: 6000, width: 250, height: 300, theme: { shell: { background: '#33', color: '#ff' }, tweets: { background: '#00', color: '#ff', links: '#4aed05' } }, features: { scrollbar: true, loop: false, live: true, hashtags: true, timestamp: true, avatars: true, behavior: 'all' } }).render().setUser('{TWIT_USR}').start(); lt;/scriptgt; lt;/divgt; lt;div style=float:right;gt; lt;div id=tboxgt;lt;/divgt; lt;script type=text/javascriptgt; twttr.anywhere(function (T) { T(#tbox).tweetBox({ height: 100, width: 400, defaultContent: Your tweet here... }); var currentUser, screenName, profileImage, profileImageTag; if (T.isConnected()) { currentUser = T.currentUser; screenName = currentUser.data('screen_name'); profileImage =