$decodedSignedRequest['oauth_-token'],'message'=>$userInfo['name']。'将赢得一年的免费葡萄酒', “名字”=>“奥利弗的塔林加”, 'link'=>$fbconfig['appPageUrl'], “description”=>“奥立弗位于迈凯轮谷的塔兰加(Taranga)是超优质HJ Reserve设拉子的故乡,并为著名的奔富庄园(Penfolds Grange)供应葡萄,该庄园可以说是澳大利亚设拉子种植者成就的巅峰。因此,加入他们的社区,一起抽签,赢取一杯价值数年的美酒吧!”, “图片”=>$picLocal ); 如果(!($sendMessage=$facebook->api('/'.$profile_id'./feed/'.'post'.$attachment))){ $errors=error_get_last(); echo“Facebook发布错误:.$errors['type']; 回显“\n”。$errors['message']; } },facebook-graph-api,feed,Facebook Graph Api,Feed" /> $decodedSignedRequest['oauth_-token'],'message'=>$userInfo['name']。'将赢得一年的免费葡萄酒', “名字”=>“奥利弗的塔林加”, 'link'=>$fbconfig['appPageUrl'], “description”=>“奥立弗位于迈凯轮谷的塔兰加(Taranga)是超优质HJ Reserve设拉子的故乡,并为著名的奔富庄园(Penfolds Grange)供应葡萄,该庄园可以说是澳大利亚设拉子种植者成就的巅峰。因此,加入他们的社区,一起抽签,赢取一杯价值数年的美酒吧!”, “图片”=>$picLocal ); 如果(!($sendMessage=$facebook->api('/'.$profile_id'./feed/'.'post'.$attachment))){ $errors=error_get_last(); echo“Facebook发布错误:.$errors['type']; 回显“\n”。$errors['message']; } },facebook-graph-api,feed,Facebook Graph Api,Feed" />

Facebook graph api PHP流式发布新闻,但图片未上传 $profile_id=$userInfo['id']; $picLocal=”https://xxxxxxxxxx/logo.jpg"; $attachment=array('access_-token'=>$decodedSignedRequest['oauth_-token'],'message'=>$userInfo['name']。'将赢得一年的免费葡萄酒', “名字”=>“奥利弗的塔林加”, 'link'=>$fbconfig['appPageUrl'], “description”=>“奥立弗位于迈凯轮谷的塔兰加(Taranga)是超优质HJ Reserve设拉子的故乡,并为著名的奔富庄园(Penfolds Grange)供应葡萄,该庄园可以说是澳大利亚设拉子种植者成就的巅峰。因此,加入他们的社区,一起抽签,赢取一杯价值数年的美酒吧!”, “图片”=>$picLocal ); 如果(!($sendMessage=$facebook->api('/'.$profile_id'./feed/'.'post'.$attachment))){ $errors=error_get_last(); echo“Facebook发布错误:.$errors['type']; 回显“\n”。$errors['message']; } }

Facebook graph api PHP流式发布新闻,但图片未上传 $profile_id=$userInfo['id']; $picLocal=”https://xxxxxxxxxx/logo.jpg"; $attachment=array('access_-token'=>$decodedSignedRequest['oauth_-token'],'message'=>$userInfo['name']。'将赢得一年的免费葡萄酒', “名字”=>“奥利弗的塔林加”, 'link'=>$fbconfig['appPageUrl'], “description”=>“奥立弗位于迈凯轮谷的塔兰加(Taranga)是超优质HJ Reserve设拉子的故乡,并为著名的奔富庄园(Penfolds Grange)供应葡萄,该庄园可以说是澳大利亚设拉子种植者成就的巅峰。因此,加入他们的社区,一起抽签,赢取一杯价值数年的美酒吧!”, “图片”=>$picLocal ); 如果(!($sendMessage=$facebook->api('/'.$profile_id'./feed/'.'post'.$attachment))){ $errors=error_get_last(); echo“Facebook发布错误:.$errors['type']; 回显“\n”。$errors['message']; } },facebook-graph-api,feed,Facebook Graph Api,Feed,在3天之前,此代码适用于所有应用程序。但从过去的3天里,我看到了信息等帖子,唯一的图片,我们无法看到的新闻 下面的代码对我很有用 $profile_id = $userInfo['id']; $picLocal = "https://xxxxxxxxxx/logo.jpg"; $attachment = array('access_token' => $decodedSignedRequest['oauth_token'],'mess

在3天之前,此代码适用于所有应用程序。但从过去的3天里,我看到了信息等帖子,唯一的图片,我们无法看到的新闻


下面的代码对我很有用

$profile_id = $userInfo['id'];
            $picLocal = "https://xxxxxxxxxx/logo.jpg";
                $attachment = array('access_token' => $decodedSignedRequest['oauth_token'],'message' => $userInfo['name'].' is in the draw to win a Free wine for a year',
             'name' => "Oliver's taringa",
             'link' => $fbconfig['appPageUrl'],
             'description' => 'Oliver\'s Taranga in McLaren Vale is home to the ultra-premium HJ Reserve Shiraz and has supplied grapes for the illustrious Penfolds Grange, arguably the pinnacle of achievement for Shiraz growers in Australia. So join their community to go in the draw to win a years worth of amazing wine!',
             'picture' => $picLocal
                );
                if(!($sendMessage = $facebook->api('/'.$profile_id.'/feed/','post',$attachment))){
                $errors= error_get_last();
                echo "Facebook publish error: ".$errors['type'];
                echo "<br />\n".$errors['message'];
                }
            }   

下面的代码非常适合我

$profile_id = $userInfo['id'];
            $picLocal = "https://xxxxxxxxxx/logo.jpg";
                $attachment = array('access_token' => $decodedSignedRequest['oauth_token'],'message' => $userInfo['name'].' is in the draw to win a Free wine for a year',
             'name' => "Oliver's taringa",
             'link' => $fbconfig['appPageUrl'],
             'description' => 'Oliver\'s Taranga in McLaren Vale is home to the ultra-premium HJ Reserve Shiraz and has supplied grapes for the illustrious Penfolds Grange, arguably the pinnacle of achievement for Shiraz growers in Australia. So join their community to go in the draw to win a years worth of amazing wine!',
             'picture' => $picLocal
                );
                if(!($sendMessage = $facebook->api('/'.$profile_id.'/feed/','post',$attachment))){
                $errors= error_get_last();
                echo "Facebook publish error: ".$errors['type'];
                echo "<br />\n".$errors['message'];
                }
            }   

我也有同样的问题,我会注意这里,以防有人发布解决方案…我也有同样的问题,我会注意这里,以防有人发布解决方案。。。