Hi All,
I am trying to make a page automatically click a button... basically here is the link:
So there is no href, but there is an onclick bit.HTML Code:<a href="#" class="actionspro_a" onclick="return SocialGraphViewActionHandler.onAddFriend({"obj_label":"Page","source":"people_browser_full","node_id":46873245194,"element":"pb_46873245194","action":"add_friend","title":"Eric Gaines","id":1465857131})">Add as Friend</a>
Does anyone know how I would call this onclick function automatically?
Cheers all
Code:<script type="text/javascript">> SocialGraphViewActionHandler.onAddFriend({"obj_label":"Page","source":"people_browser_full","node_id":46873245194,"element":"pb_46873245194","action":"add_friend","title":"Eric Gaines","id":1465857131}) </script>
thanks WingedPanther...
I tried that code before actually, I put it just before the </body> tag, but nothing happens.
Basically Im trying to make a script to add my friends in facebook automatically, and that script code is the code that runs when you click "Add as friend".
Nothing seems to happen when I run this. I do login to my account before running that code just in case that was something to do with it.
Any ideas?
You're assuming there are no other controls in place to prevent you auto-friending yourself.
Well... put it this way, its definitely possible, because other people have written applications to do it already
Why not just make a script that runs the code unconditionally, without bothering with the onclick? To tell Javascript to wait for the user to click on something to do what you want it to do automatically just seems to defeat its own purpose.
Life's too short to be cool. Be a nerd.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks