Here on my fanpage I've added my small app, that makes it possible, that fans can upload photos to a special photo album of this fanpage.
It's possible, cuz I use a fanpage admin permission ("manage_pages, publish_stream and offline_access").
But now - everytime someone uses this app, I get a photo publish news feed on my fanpage. How can I add a photo to a fanpage WITHOUT publish it to the newsstream?
Actually my publish php code looks like:
<?php
$post_data = array(
'image' => ('@' . realpath($photo)),
'message' => $msg)
);
$facebook->setAccessToken(_FANPAGE_ACCESS_TOKEN);
$data = $facebook->api('/'. _ALBUM_ID . '/photos', 'post', $post_data);
?>
When I remove the "publish_stream" permission with my fanpage admin account - there will appear a 'funny' bug. The uploaded photo won't show up in the photo album and not in the news stream. But it is in the photo-strip where you see all new photos and when you click on it, it will be in a row with all those uploaded photos... it looks like, that it is somewhere in a 'hidden' photoalbum.
So does anyone have a clue, how to post photos over the graph api without publish it to the news stream?
Thanks in advance,
Jurik
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…