Hello Anywhere,
Thanks for the hardwork, I know you guys might be under a lot of
pressure, just wanted to let you know that there is a broken example
at: http://dev.twitter.com/anywhere/begin#login-signup
I am referring to the conditional connect button example.
I was able to get it working as following:
<script type="text/javascript">
twttr.anywhere(onAnywhereLoad);
function onAnywhereLoad(twitter) {
// Conditionally display the Connect Button based on
current logged in state:
if (twitter.isConnected()) {
twitter.User.current(function(currentUser) {
screenName =
currentUser.data('screen_name');
profileImage =
currentUser.data('profile_image_url');
profileImageTag = "<img src='" +
profileImage + "'/>";
$('#twitter-connect-
placeholder').html("Logged in as " + profileImageTag + " " +
screenName);
});
} else {
twitter("#twitter-connect-
placeholder").connectButton();
};
};
</script>
I hope you will get it fixed on examples page so the new users won't
waste their time finding out why it isn't working for them.
Thanks,
Hameedullah Khan.
--
Subscription settings:
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en