[twitter-dev] Re: Tweet Box @Anywhere

2010-04-15 Thread silentgecko
Nope, not yet.

Changed the Access Level to readwrite, but that also doesn't seem to
work

And the Twitter Connect Button doesn't work too

On 15 Apr., 16:09, amrnt amr...@gmail.com wrote:
 Any body tries to post a status from Tweet Box and it posted
 successfully to his Twitter?


-- 
To unsubscribe, reply using remove me as the subject.


[twitter-dev] Re: twitter.User.current.data is not a function

2010-04-15 Thread silentgecko
Same Problem here

On 15 Apr., 09:47, Palleas pall...@gmail.com wrote:
 Hi all,

 I gave a try to Anywhere connect, and I have a weird issue, even if
 I'm using the official example provided on the website.
 Here is what I'm doing :

 twttr.anywhere(function(twitter)
 {
   if (twitter.isConnected)
   {
     alert(twitter.User.current.data(screen_name));
   }
   else
   {
     twitter(#connectArea).connectButton({size: large});
   }

 });

 But this is what I got from firefox and Chrome :

 twitter.User.current.data is not a function
 [Break on this error] alert(twitter.User.current.data(screen_name));
 

 Any hints?
 Thanks!


-- 
To unsubscribe, reply using remove me as the subject.


[twitter-dev] Re: @anywhere login code samples

2010-04-15 Thread silentgecko
Thanks, that helped me a lot. My Connect is working now! ;)

On 15 Apr., 12:08, siggy andrewseig...@gmail.com wrote:
 Hi there,

 Some of the @anywhere sample code in the Working with the current
 user section required some tweaks to get working.

 The text specifies a User Callback function but the sample code does
 not.

 Also, the twttr.anywhere() function does not appear to work with an
 API key, instead I specify it with the anywhere.js file.

 Here is a modified code snippet that appears to work:

 //var anywhereApiKey = abcdefghi-123;
 //twttr.anywhere(anywhereApiKey, 1.0.0, onAnywhereLoad);
 twttr.anywhere(onAnywhereLoad);
 function onAnywhereLoad(twitter)
 {
         // Conditionally display the Connect Button based on current logged
 in state:
         if (twitter.isConnected)
         {
                 twitter.User.current(user_callback);
         }
         else
         {
                 twitter(#twitter-connect-placeholder).connectButton();
         }

 };

 function user_callback(currentUser)
 {
         screenName = currentUser.data('screen_name');
         profileImage = currentUser.data('profile_image_url');
         profileImageTag = img src=' + profileImage + '/;

         $('#twitter-connect-placeholder').innerHTML = Logged in as  +
 profileImageTag +   + screenName;

 };

 Thanks,
 Andrew
 twitter.com/siggy_sf


-- 
To unsubscribe, reply using remove me as the subject.