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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -