Grate tool good work !
i am trying to create addon that adds a signature (text, email, home page link) to facebook status can you show me an example code for this?
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Dushy,
For pure (javascript) code related questions, I would recommend trying Stackoverflow.com.
However, if you still can't find your answers there, let me know and I will try to figure it out for you. -
-
i tried to do some thing like this code
but it dose not go in the status textarea it deletes it and put just the text not the signature.
what do u think is the problem?
var doSig = null;
var textareaElem = null;
var textareaVal = null;
var mySig = "Dushy D. Phone:+968-8526595, Email:dushy@gmail.com.com, Site: www.google.com";
$("textarea").blur(function () {
if($(this).hasClass("sigIn") && $(this).val().length==0){doSig = false;}
else{doSig = true;}
textareaVal = $(this).val();
if(doSig){
if(textareaVal.length>0){
textareaVal = textareaVal + " " + mySig;
$(this).val(textareaVal);
$(this).addClass("sigIn");
}
}
}); -
-
-
-
-
-
You can do it with the postToWall appAPI by always adding a signature to the posted string.
The above though is used more for posting statuses outside of Facebook.
If you want to add the signature as part of the regular user flow on the Facebook page, I'de recommend binding the onClick event of the "Post" button which will add an additional signature string to the text box right before the status is being submitted.
Worth trying :) -
-
-
-
-
-
-
Thanks for the quick replay
can you send me an example code for binding the onClick event of the "Post" button of facebook?
do you think i need to be connected with appAPI.fbAPI.connect() in order of this to work?
Thanks (Toda) -
-
-
Loading Profile...




EMPLOYEE

