error in facebook sdk library file

I just started working with facebook sdk and im following the packet code example. But when i start running it it gave me many errors but was able to fix them by referring to this,but this i couldn’t fix this error…

HTTP Status 500 – java.lang.RuntimeException: PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:UsersHP USERDownloadsApache Tomcat GraphSessionInfo.php on line 90

java.lang.RuntimeException: PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in GraphSessionInfo.php on line 90

Error refered to the below code

public function getIssuedAt()
{
$stamp = $this->getProperty('issued_at');
if ($stamp) {
return (new DateTime())->setTimestamp($stamp);  //line 90
} else {
return null;
}
}


Source: facebook

Leave a Reply