Parse error: syntax error, unexpected ')' in......
dit bericht krijg ik ik heb deze al een x weg gehaald maar dan komt de volgende:
Parse error: syntax error, unexpected '}' in ...
deze heb ik ook weg gehaald maar dan is alles wit XD
werkt het hele script niet.
het is een script dat is samenwerking is met facebook genaamd: thiefmaster
dit probleem wil ik graag verhelpen en als het lukt zal ik het script hier ook uploaden!
alvast bedankt!
het probleem gevende script:
PHP
<?php
require_once 'facebook.php';
//========================================================
// Application Title and Id
//========================================================
$appTitle = '******';
$appId = '******';
//========================================================
// Application API Key and Secret
//========================================================
$appApiKey = '*******';
$appSecret = '*******';
//========================================================
// Application Callback URL and Canvas URL
//========================================================
$appCallbackUrl = '********';
$appCanvasUrl = '******';
//========================================================
// DO NOT MODIFY BELOW THIS
//========================================================
//facebook user id
$user = null;
$fbme = null;
// Create our Application instance.
$facebook = new Facebook(array(
));
)
);
$fbme = null;
$user = null;
if( !$session ) {
echo '<fb:redirect url="'.$loginUrl.'" />';
exit;
}
else {
try {
$user = $facebook->getUser();
$fbme = $facebook->api('/me');
} catch (FacebookApiException $e) {
echo '<fb:redirect url="'.$loginUrl.'" />';
exit;
}
}
//================================
// Stream Publish Function
//================================
function publishMyStream($message, $title, $caption, $link, $desc, $picture ) {
global $facebook;
global $appCanvasUrl;
global $appId;
global $appTitle;
}
}
?>
Toon Meer