如何从FacebookRequest获取财产

时间:2014-10-02 07:09:37

标签: facebook api symfony

当我这样做时:

$user_profile = (new FacebookRequest($session, 'GET', '/me'))->execute()->getGraphObject(GraphUser::className());

我可以获得这样的财产

 $result['firstName'] = $user_profile->getProperty("first_name");
      $result['lastName'] = $user_profile->getProperty("last_name");

但是当我想从我获得财产时我不能:

$likes = (new FacebookRequest($session, 'GET', '/me?fields=likes.limit(1000)'))->execute()->getGraphObject();

请帮助 感谢

0 个答案:

没有答案