I am looking to change a DIV when I know a user is following me.
I cant get the code to fire the alerts.
The follow button does show up, but after i click and follow, nothing happens.
twttr.anywhere(function (T) {
T("#followplaceholder").followButton('twitterapi');
function follow(){
T.currentUser.isFollowing('twitterapi'), function(e){
if (e == true){
alert("following");
} else {
alert("not following");
}
};
}
});
Any help would be great!
Here is the code i am trying to use now. Where do i call the function to get it fired? Or should i just take the function part out?
twttr.anywhere(function (T) {
T("#followplaceholder").followButton('twitterapi');
function follow(){
T.currentUser.isFollowing('twitterapi'), function(e){
if (e == true){
alert("following");
} else {
alert("not following");
}
};
}
});