Skip to content

Instantly share code, notes, and snippets.

View mickeprag's full-sized avatar

Micke Prag mickeprag

  • Orbital Systems AB
  • Staffanstorp, Sweden
View GitHub Profile
sleep(1000) -- This is *not* allowed
function onInit()
sleep(1000) -- This is ok
end
@mickeprag
mickeprag / index.php
Created August 17, 2018 08:25
Getting facebook page access token
<?php
$appId = '';
$appSecret = '';
// Do not change below this line
session_start();
require_once __DIR__ . '/Facebook/autoload.php';
from lupa import LuaRuntime
script = """
function callDone(response)
end
function run(arg)
http:get(callDone)
end
"""