PDA

View Full Version : PHP Error



Colin-Roberts
10-01-2008, 11:35 PM
http://colin-roberts.net/facebook/



Parse error: syntax error, unexpected T_STRING in /mounted-storage/home10/sub002/sc16051-AGLV/colin-roberts.net/facebook/index.php on line 8

Line 8:

$facebook = new Facebook(9f7a65949b092da77d9dad8c70541a0d,82cca5f3 eeceaff9ae76627d204c02a9);

Moved by Agesilaus (Forum Moderator) from Designing and Development: Please post in the correct forum next time.

Jme
10-01-2008, 11:57 PM
what's on line 7?

Colin-Roberts
11-01-2008, 12:31 AM
Line 3-7 are commented.

Colin-Roberts
11-01-2008, 12:48 AM
edit fixed that./. new error:
unexpected {

//catch the exception that gets thrown if the cookie has an invalid session_key in it
try {
if (!$facebook->api_client->users_isAppAdded()) {
$facebook->redirect($facebook->get_add_url());
}
}
try { is the line that has an error?

Jackboy
12-01-2008, 10:17 PM
Weird i never heard of try.. lol

I dunno what this function is but u cud try

try (!$facebook->api_client->users_isAppAdded()){
$facebook->redirect($facebook->get_add_url());
}

I dunno mate soz, ask Simon rly.

Blob
12-01-2008, 10:25 PM
Try is actually a function

http://uk.php.net/try

Want to hide these adverts? Register an account for free!