Skip to content

Instantly share code, notes, and snippets.

@simekadam
Created December 27, 2010 16:54
Show Gist options
  • Save simekadam/756287 to your computer and use it in GitHub Desktop.
Save simekadam/756287 to your computer and use it in GitHub Desktop.
<?php
require_once 'facebook_crap_init.php';
$facebook->api('/137924592933057/likes', 'POST');
?>
<?php
require_once 'php-sdk/src/facebook.php';
$app_id = "";
$app_secret = "";
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true
));
if(is_null($facebook->getUser()))
{
header("Location:{$facebook->getLoginUrl(array('req_perms' => 'user_status,publish_stream,user_photos'))}");
exit;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment