Facebookから閉鎖されたグループ投稿を取得できません。 私はそのグループのメンバーですが、グラフapiのアクセストークンでアクセスできません。しかし私はメンバーである私のアクセストークン で開いているグループからすべてのデータを取り出すことができます。私はこのURLを使用していますFacebookのグラフAPIを使用してクローズグループからデータを取得できません
: [https://graph.facebook.com/my-group-id/feed?access_token=my-access-token]
マイコード:
<?php
$group = array(
array('id'=>'xxxx','name'=>'zzzzz'),
array('id'=>'xxx' , 'name'=>'yyyy'),
);
$access_token = 'my token';
$n = count($group);
$i = -1;
while($n--){
$i++;
$add = 'https://graph.facebook.com/'.$group[$i]['id'].'/feed?fields=id,name,story,message,updated_time&access_token='.$access_token;
$json = file_get_contents($add);
$data = json_decode($json);
if($json){
foreach($data->data as $item){
$post_id = $item->id;
$name = $item->name;
$date = $item->updated_time;
$story = $item->story;
$message = $item->message;
}
}
}
?>
正しい。それはAPIの仕組みです – WizKid
しかし、私が閉じたグループのメンバーなら、そのグループの投稿を見ることができるのですが、グラフapiを使ってアクセスできないのはなぜですか? –
apbookで行うことができない多くのことがfacebook.comでできます – WizKid