I want to utilize fb.api to make a single post on the logged-in user's wall. Here is the code snippet:
var params = {};
params['message'] = 'gegeegeggegall! Check out www.facebook.com/trashcandyrock for more info.';
params['name'] = 'gegeggeeg - gegegege';
params['description'] = 'Check out Tegegegeg! Win merch by playing and recommending to your friends.';
params['link'] = 'http://www.bblblba.com';
params['picture'] = 'http://summer-mourning.zoocha.com/uploads/thumb.png';
params['caption'] = 'Tgegegegeeg';
FB.api('/me/feed', 'post', params, function(response) {
if (!response || response.error) {
alert('Error occurred');
} else {
alert('Published to stream - you might want to delete it now!');
}
});
Will this code post to the user's wall every time they refresh the site?
What should be done in this case?