$app_id = '1738930566378096';
$app_secret = 'a7bc1da73005a3dc3020ba807c6d5c58';

// Get an App Access Token
$app_token_url = 'https://graph.facebook.com/oauth/access_token?'
. 'client_id=' . $app_id
. '&client_secret=' . $app_secret
. '&grant_type=client_credentials';

echo '

';
echo $app_token_url;
echo '
';

$app_access_token = file_get_contents($app_token_url);

echo '

';
echo $app_access_token;
echo '
';

// Set Secure URLs - modify to the appropriate URLs
$set_url = 'https://api.facebook.com/method/admin.setAppProperties?'
. 'properties={"secure_callback_url":"https://www.example.com/canvas/",'
. '"secure_page_tab_url":"https://www.example.com/pagetab/"}&'
. $app_access_token;

echo $set_url;

$set_result = file_get_contents($set_url);

echo '

';
echo 'Set result: ' . $set_result . '
';
echo '
';

?>

test for i love Hawaii