Skip to content

Instantly share code, notes, and snippets.

View richardpilgrim's full-sized avatar

Richard Pilgrim richardpilgrim

View GitHub Profile
@richardpilgrim
richardpilgrim / logout.php
Last active December 24, 2015 17:59
Facebook PHP Example Logout Code
<?php
require '../src/facebook.php';
// Create our Application instance (replace this with your appId and secret).
$facebook = new Facebook(array(
'appId' => '<appid>',
'secret' => '<appsecret>',
));
$user = $facebook->getUser();
@richardpilgrim
richardpilgrim / logout.php
Created October 5, 2013 15:43
Facebook PHP Logout Example Code to only logout user from app and not from Facebook. Essentially revoke the permission from your app.
<?php
require '../src/facebook.php';
// Create our Application instance (replace this with your appId and secret).
$facebook = new Facebook(array(
'appId' => '<appid>',
'secret' => '<appsecret>',
));
// Get User ID
@richardpilgrim
richardpilgrim / fizzbuzz.html
Created October 27, 2013 09:34
Fizzbuzz in Javascript. I made it to keep myself entertained.
<html>
<head>
<title>FizzBuzz</title>
</head>
<body>
<div id="test"></div>
<script>
var div = document.getElementById('test');