The way to acheive this best would be:
twttr.anywhere(function(twitter)
{
if (twitter.isConnected())
{
alert(ttwitter.currentUser.data('screen_name'));
}
else
{
twitter("#connectArea").connectButton({size: "large"});
}
});
Thanks,
Dan
On Apr 15, 7:46 am, silentgecko wrote:
> Same Problem here
>
> On 15 Apr., 09:47, Palleas 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.