$fburl = "/XXXXXXXXXX/posts?fields=$fields&limit=25$nav";
echo "FBURL: $fburl<br />";
$request = new FacebookRequest( $session, 'GET', "$fburl");
$response = $request->execute();
$FBdata = json_decode($response->getRawResponse());
$fbatturl = urlencode("/$postid?fields=attachments");
echo "FBATTURL: $fbatturl<br />";
$request = new FacebookRequest( $session, 'GET', "$fbatturl");
$response = $request->execute();
$FBattdata = json_decode($response->getRawResponse());
我被困在这里。在网页中第一个fburl组遍历了25个帖子,但我无法接听每个帖子的电话。要运行的附件。错误是:
Fatal error: Uncaught exception 'Facebook\FacebookAuthorizationException' with message '(#803)
Some of the aliases you requested do not exist: aaaaa...aaaaa_aaaaaaaaa..aaa?fields=attachments'
in C:\wwwroot\....php-sdk4\FacebookRequestException.php:134 Stack trace: #0
C:\wwwroot\.,..php-sdk4\FacebookRequest.php(268):
Facebook\FacebookRequestException::create('{"error":{"mess...', Object(stdClass), 404) #1 C:\wwwroot\.....php(386): Facebook\FacebookRequest->execute() #2 {main} thrown in C:\wwwroot\....\php-sdk4\FacebookRequestException.php on line 134
&#39; FBatturl&#39;在图形资源管理器(2.1)中的错误消息中回显。
遵循此示例Facebook PHP SDK4 - FQL Request我已经尝试过......
$params = urlencode("SELECT attachment FROM stream WHERE source_id=$StatusID[0] AND post_id=\"$postid\"");
$request = new FacebookRequest( $session, 'GET', $params );
$response = $request->execute();
$FBattdata = json_decode($response->getRawResponse());
并收到同样的错误,我假设附件已不存在。他们遇到了很多问题。
从哪里来? 应该可以从帖子链接获取照片吗?我是否读过新SDK中会有帖子的照片?
答案 0 :(得分:0)