I would like users to be able to post to their wall from my site. When I click on my submit to FB link, the Facebook popup just says “An Error Occurred. Please try again later.” Firebug just says that the error is “Image corrupt or truncated: “. I get this same message if try any FB method, like FB.login or FB.getLoginStatus. I know that’s not a lot to go off of, but does anyone have ideas for what’s going wrong, or a better way to debug this?
function load_FB(){
FB.init({
appId : xxxxxxxxxxxxxxxx,
status : true,
cookie : true,
xfbml : true
});
}
var publish = {method: 'feed', message: 'my message'};
function publish_wall_post()
{
FB.ui(publish);
}
thinkdiff has a great working example on how to publish on a wall.
http://thinkdiff.net/facebook/graph-api-iframe-base-facebook-application-development/