I just started working with Facebook sdk and I am 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:\Users\HP USER\Downloads\Apache 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;
}
}