Skip to content

Instantly share code, notes, and snippets.

Avatar

David Hewitson shstkvch

View GitHub Profile
@shstkvch
shstkvch / fbscripting.js
Created Apr 22, 2012
Facebook Scripting Concept
View fbscripting.js
// Facebook User Scripting
// A (conceptual) scripting interface for Facebook (by David Hewitson, if it matters.)
var people_who_think_i_rock = 0;
me.onWallPost(function(post) {
// someone's posted on my wall!
if(post.message == 'You rock!') {
// someone thinks I rock!
post.like(); // like the post
View test.html
<! DOCTYPE HTML>
<html>
<head>
<title>Test Gist</title>
</head>
<body>
<h1>Just a test.</h1>
</body>
</html>
You can’t perform that action at this time.