Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
moo!

L0nely^C0wboy lonelycowboy

🤠
moo!
View GitHub Profile
@lonelycowboy
lonelycowboy / fb_like.php
Created Oct 5, 2011 — forked from michaelaguiar/fb_like.php
Facebook API - Detect if a user like's the app's page
View fb_like.php
<?php
// Get Signed Request
$signed_request = $_REQUEST['signed_request'];
// Parse Signed Request
function parsePageSignedRequest() {
if(isset($_REQUEST['signed_request'])) {
$encoded_sig = null;
$payload = null;
list($encoded_sig, $payload) = explode('.', $_REQUEST['signed_request'], 2);