The initialization code:
FB.init({ appId: \'123456789012345\', channelUrl: \'http://localhost/Some/Url/FacebookCh
add return false; to your method call.
return false;
onsubmit="someMethod(); return false;"