Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created November 22, 2010 20:00
Show Gist options
  • Select an option

  • Save typeoneerror/710562 to your computer and use it in GitHub Desktop.

Select an option

Save typeoneerror/710562 to your computer and use it in GitHub Desktop.
//die();
require_once "../setup.php";
require_once "bootstrap.php";
require_once "apps.php";
foreach ($apps as $name => $env)
{
$clientId = $env[0];
$appSecret = $env[1];
$token = getAppSecretToken($clientId, $appSecret);
$restrictions = array(
"location" => "US,CA",
"age" => "18+",
"access_token" => $token,
"callback" => "",
);
$params = array(
"method" => "admin.setRestrictionInfo",
"restriction_str" => json_encode($restrictions),
"access_token" => $token,
);
$result = $facebook->api($params);
echo $name;
pr($params);
pr("result={$result}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment