Reputation: 1524
I m publishing message on user wall using fb "Post to your wall" popup, it shows textarea where user can write message, I want to put custom text in that text area, right now it has a watermarker says "write something...", I need to replace that.
I m using this code:
function streamPublish(_message){
FB.ui({
method: 'stream.publish',
message: 'this is a test message',
},
function(response) {
});
}
thanks
Upvotes: 0
Views: 2924
Reputation: 10619
Facebook will lose the importance of the wall, if they allow us to do so.
Upvotes: 1
Reputation: 27687
For now I believe you can use:
user_message_prompt: 'Custom prompt'
So your code becomes:
function streamPublish(_message){
FB.ui({
method: 'stream.publish',
message: 'this is a test message',
user_message_prompt: 'Custom prompt'
},
function(response) {
});
}
(Source: http://fbdevwiki.com/wiki/FB.ui)
But be warned, this is deprecated, and won't be supported by the new API:
https://developers.facebook.com/docs/reference/dialogs/feed/
Upvotes: 1