問題描述
在我的粉絲專頁上 我添加了我的小應(yīng)用程序,這使得粉絲可以將照片上傳到此粉絲專頁的特殊相冊.
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.
這是可能的,因為我使用了粉絲專頁管理員權(quán)限(manage_pages、publish_stream 和 offline_access").
It's possible, cuz I use a fanpage admin permission ("manage_pages, publish_stream and offline_access").
但是現(xiàn)在 - 每次有人使用這個應(yīng)用程序時,我都會在我的粉絲專頁上收到一個照片發(fā)布新聞提要.如何將照片添加到粉絲專頁而不將其發(fā)布到新聞流?
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?
實際上我發(fā)布的 php 代碼如下:
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);
?>
當(dāng)我使用我的粉絲專頁管理員帳戶刪除publish_stream"權(quán)限時 - 會出現(xiàn)一個有趣"的錯誤.上傳的照片不會出現(xiàn)在相冊中,也不會出現(xiàn)在新聞流中.但是它在照片條中,您可以在其中看到所有新照片,當(dāng)您單擊它時,它將與所有上傳的照片排成一排……看起來,它位于隱藏"相冊中的某個地方.
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.
那么有沒有人知道如何在圖形 API 上發(fā)布照片而不將其發(fā)布到新聞流?
提前致謝,尤里克
推薦答案
我找到了解決方案!文檔中沒有提到它 - 如果您在通過 Graph API 上傳照片時不想發(fā)布提要,請設(shè)置以下參數(shù):no_story=1
I got the solution! Nowhere in the docs is it mentioned - if you don't want post a feed when you upload a photo via Graph API set following parameter: no_story=1
此信息更早在此處:http://developers.facebook.com/文檔/參考/api/照片/
但不知何故它從這個文檔中消失了.:(
But somehow it disappeard from this doc. :(
來源:我可以上傳照片但是沒有在 Facebook 上發(fā)布到墻上?
如何聯(lián)系 FB 以便他們添加這個非常重要的信息?
How to contact FB so that they add this VERY important info?
這篇關(guān)于是否可以在不發(fā)布的情況下將照片上傳到粉絲專頁相冊?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!