문제 설명
페이지 팔로워 뉴스 피드에 Facebook 팬 페이지 콘텐츠가 표시되지 않음 (Facebook Fan page content not showing in page followers news feed)
내 코드는
$page_id = '***********';
$access_token = (new FacebookRequest($session, 'GET', '/' . $page_id, array('fields' => 'access_token')))‑>execute()‑>getGraphObject()‑>asArray();
$page_access_token = $access_token['access_token'];
$data['link'] = "http://www.phpgang.com/";
$data['message'] = "You can change it";
$data['picture'] = "http://www.phpgang.com/wp‑content/themes/PHPGang_v2/img/logo.png";
$data['caption'] = "";
$data['description'] = "you can change it";
$data['access_token'] = $page_access_token;
$post_url = 'https://graph.facebook.com/' . $page_id . '/feed';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $post_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFI ELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec($ch);
curl_close($ch);
입니다. http://www.phpgang.com/ 팔로워 뉴스 피드에 표시됩니다. 하지만 다른 링크를 공유하면 내 뉴스 피드에 표시되지 않습니다...
왜 이런 일이 발생하는지 아십니까?
참조 솔루션
방법 1:
There is an algorithm that decides if someone shows up for followers/fans or not, you can´t really force it. As long as there is no error and the post shows up on the Page, there´s nothing else you can do. It will most likely show up for some followers, usually for those who interact with your Page a lot.
(by Shakir Blouch、andyrandy)