从2.xPHP SDK向3.x迁移过程中的Im。 所有多频率电话都被打断,我没有能够说明如何解决。
脸谱仪利用 o木字作品连接标识,使现有用户的数据能够进入服务器。 我认为,我获得象征性的帮助是正当的。
我尝试了以下编码改动,每次都出现错误:
www.un.org/Depts/DGACM/index_spanish.htm 旧方式:
$id = $fb->getUser(); // RETURNS A VALID USER ID
$fql = { "friends" : "SELECT uid FROM user WHERE has_added_app=1 and uid IN (SELECT uid2 FROM friend WHERE uid1 = .$id. )", "profiles" : "SELECT uid, name, pic_square FROM user WHERE uid IN (SELECT uid FROM #friends)"} ;
$response = $fb->api( array( method => fql.multiquery , queries => $fql));
Gives the error: PHP Fatal error: Uncaught Exception: 102: Requires user session
thrown
<>载体>假定采用新方式:
$id = $fb->getUser(); // RETURNS A VALID USER ID
$fql = { "friends" : "SELECT uid FROM user WHERE has_added_app=1 and uid IN (SELECT uid2 FROM friend WHERE uid1 = .$id. )", "profiles" : "SELECT uid, name, pic_square FROM user WHERE uid IN (SELECT uid FROM #friends)"} ;
$response = $fb->api( array( method => fql.query , query => $fql));
Gives the error: PHP Fatal error: Uncaught Exception: 601: Parser error: unexpected { at position 0
任何帮助了解如何利用新的PHP SDK进行多频率的工作都受到赞赏。