Skip to content

Instantly share code, notes, and snippets.

@buzzedword
Created October 4, 2011 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buzzedword/1262912 to your computer and use it in GitHub Desktop.
Save buzzedword/1262912 to your computer and use it in GitHub Desktop.
Debug a Facebook App from remote console
<?php
// $environment = 'dev';
if (isset($_GET['jsconsole']) $termID = $_GET['jsconsole'];
?>
<!DOCTYPE html>
<head>
<title>Remote Debugging on Facebook</title>
<?php if ($environment === 'dev' && isset($termID)) { ?>
<script src="http://jsconsole.com/remote.js?<?php echo $termID; ?>"></script>
<?php } ?>
</head>
<body>
...
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment