K
knowledgenotebook
May I borrow your eyes for it?
What I want to do is to post a short text to my FB wall. Thanks.
<html>
<head>
<script src="http://connect.facebook.net/en_us/all.js"></script>
<script type="text/javascript">
FB.init({appid: '100001125873988', status: true, cookie: true,xfbml:
true});
function shareonWall() {
FB.getLoginStatus(function(response){
if (response.session) {
FB.ui ({
method: 'stream.publish',
message: '',
attachment: {
name: 'Don',
caption: 'Communication 303',
description: ('Clarity, brevity and an understanding of your
audience.'),
href: ''
}
function (response) {
if (response && response.post_id)
{
alert('The note is published to your FB wall now.');
}
};
});
}
else
{
alert('Please log in to FB first prior to posting.');
}
})
}
</script>
</head>
<body>
<input type="button" value="Share" onClick="shareOnWall()"/>
</body>
</html>
What I want to do is to post a short text to my FB wall. Thanks.
<html>
<head>
<script src="http://connect.facebook.net/en_us/all.js"></script>
<script type="text/javascript">
FB.init({appid: '100001125873988', status: true, cookie: true,xfbml:
true});
function shareonWall() {
FB.getLoginStatus(function(response){
if (response.session) {
FB.ui ({
method: 'stream.publish',
message: '',
attachment: {
name: 'Don',
caption: 'Communication 303',
description: ('Clarity, brevity and an understanding of your
audience.'),
href: ''
}
function (response) {
if (response && response.post_id)
{
alert('The note is published to your FB wall now.');
}
};
});
}
else
{
alert('Please log in to FB first prior to posting.');
}
})
}
</script>
</head>
<body>
<input type="button" value="Share" onClick="shareOnWall()"/>
</body>
</html>