i have page at facebook with the name of my website (fanPage), i imported like button script from FB to my website code , so i want then when user visits my website then whereever he clicks on my page then it should be actually clicking LIKE button but invisibly,
i attached LIKE button to Cursor and it moves along with cursorm i did that successfully but the only thing i want it that WHEN USER VISITS MY WEBSITE AND WHEN HE SIMPLY CLICK ANYWHERE ON PAGE THEN IT SHOULD TRIGGER THE CLICK ON LIKE BUTTON FOR FB
and it should be only for registered user who has logged in and resides within SESSION
LIKE Button ius attached along with CURSOR and it moves along with it,
WHEN USER VISITS MY WEBSITE AND WHEN HE SIMPLY CLICK ANYWHERE ON PAGE THEN IT SHOULD TRIGGER THE CLICK ON LIKE BUTTON FOR FB
Are you serious? It's really a very bad user experience. Why don't you just place the button so user can like your fan page if and only if the user wants?
Hunain Hafee...
Member
238 Points
639 Posts
anonymous click on button
Nov 12, 2012 09:38 AM|LINK
i have page at facebook with the name of my website (fanPage), i imported like button script from FB to my website code , so i want then when user visits my website then whereever he clicks on my page then it should be actually clicking LIKE button but invisibly, i attached LIKE button to Cursor and it moves along with cursorm i did that successfully but the only thing i want it that WHEN USER VISITS MY WEBSITE AND WHEN HE SIMPLY CLICK ANYWHERE ON PAGE THEN IT SHOULD TRIGGER THE CLICK ON LIKE BUTTON FOR FB
and it should be only for registered user who has logged in and resides within SESSION
LIKE Button ius attached along with CURSOR and it moves along with it,
some script help please
using PHP+ JS
Ruchira
All-Star
44191 Points
7179 Posts
MVP
Re: anonymous click on button
Nov 12, 2012 12:15 PM|LINK
Hello,
Are you serious? It's really a very bad user experience. Why don't you just place the button so user can like your fan page if and only if the user wants?
Wrong forum. This forum is for asp.net.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.Hunain Hafee...
Member
238 Points
639 Posts
Re: anonymous click on button
Nov 12, 2012 12:56 PM|LINK
yes i have to do it, and sorry just JS, not php
Ruchira
All-Star
44191 Points
7179 Posts
MVP
Re: anonymous click on button
Nov 12, 2012 01:25 PM|LINK
Hi,
You can use the below jQuery to get the click
$('#element').mousedown(function(event) { switch (event.which) { case 1: //call the event for your like button break; } });
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.