Personally I need to run a simple FQL using Facebook SDK PHP 4 use the following command:
$result=(new FacebookRequest( $session, 'GET', $fql))->execute()->getGraphObject()->asArray()
and it gives me the following error:
Fatal error: Uncaught exception 'Facebook \ FacebookAuthorizationException' with message '(# 12) fql is deprecated for versions v2.1 and higher'
I have read that this type of command is already overdue, but I could not find anything to replace it.
How do you get into this new API 2.x now?
I have this code that I found.
$fql="/fql?q=SELECT uid, name,pic_square, birthday_date FROM user WHERE (substr(birthday_date, 0, 2) = '07') AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) order by name&access_token=".$_SESSION["token"];
$session = $this->login();
$result=(new FacebookRequest( $session, 'GET', $fql))->execute()->getGraphObject()->asArray();
How would I do to use it in the new API.