jquery - Want to know about facebook like and how to confirm it -
recently building codes got problem.
description:
users on site have saved facebook name in database.
this database of users exchange likes each other on site.
i want check saved username matches 1 liked post. yes or no output.
below code:
<script language=javascript> var mywindow; function setacc(mysitedetails, myusername1, siteid1, uid) { document.getelementbyid("hint").style.display='block'; $("#hint").html('<img src="img/loader.gif">'); $.post('fbpostcheck.php', {details: mysitedetails, fbname:myusername1, id:siteid1, uid:uid}, function(msg) { if (msg == 'no') { $("#hint").html('<font size="4" color="red">not liked! make sure username correct, try once again or skip.</font>'); } else { removeelement('tbl', siteid1); $("#hint").html('<font size="4" color="green">liked! points/cash added balance.</font>'); mywindow.close(); } }); }; function openlike(mysite) { mywindow = window.open(mysite); } function skipthissite(mysite) { $.post('fbpostskip.php',{id: mysite}); removeelement('tbl', mysite); $("#hint").html('<font size="3"><h1>skipped!</h1></font>'); } </script>
please help.
regards!
Comments
Post a Comment