This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x=document.getElementsByTagName("input");for(var i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}}; alert('Done, all your friends have been selected'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Facebook Like Alert · CodePen</title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Facebook Like Alert · CodePen</title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function alert(textToshow, timeToShow) { | |
$("#alertText").html(textToshow); | |
$("#alert").fadeIn(1000, function() { | |
$("#alertText").fadeIn(700); | |
}); | |
setTimeout(function() { | |
hideAlert(); | |
}, timeToShow); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#alert{ | |
position:fixed; | |
display:none; | |
left:50%; | |
margin-left:-300px; | |
bottom:120px; | |
width:600px; | |
text-align:center; | |
height:auto; | |
background:#eee; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$params = array( | |
'scope' => 'email', | |
'redirect_uri' => ' ' // Add your Redirect URI Here | |
); | |
$loginUrl = $facebook->getLoginUrl($params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'src/facebook.php'; | |
require 'db/functions.php'; | |
$facebook = new Facebook(array( | |
'appId' => ' ', // Add your APP ID here | |
'secret' => ' ', // Add your App secret here | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DB_SERVER', 'localhost'); | |
define('DB_USERNAME', ' '); // Your DB Username goes here | |
define('DB_PASSWORD', ' '); // Your DB PassWord Goes here | |
define('DB_DATABASE', ' '); // The name of the DB goes here | |
$connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error()); | |
$database = mysql_select_db(DB_DATABASE) or die(mysql_error()); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE signups | |
( | |
id INT PRIMARY KEY AUTO_INCREMENT, | |
email VARCHAR(70), | |
uid VARCHAR(200), | |
username VARCHAR(100) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE signups | |
( | |
id INT PRIMARY KEY AUTO_INCREMENT, | |
email VARCHAR(70), | |
uid VARCHAR(200), | |
username VARCHAR(100), | |
); |