是否可以将照片上传到粉丝专辑而不发布? [英] Is it possible to upload a photo to fanpage album without publishing it?
问题描述
在我的粉丝专页我已经添加了我的小应用程序,这样可以让粉丝们将照片上传到此粉丝专辑的相册。
可以使用fanpage管理员权限(manage_pages,publish_stream和offline_access)。
但现在 - 每当有人使用这个应用程序,我得到一张照片发布新闻提要在我的粉丝页。如何将照片添加到粉丝页面,不要将其发布到新闻流?
其实我的发布PHP代码看起来像:
$ b $ (
'image'=>('@'。realpath($ photo)),
'message'=> $ msg)
);
$ facebook-> setAccessToken(_FANPAGE_ACCESS_TOKEN);
$ data = $ facebook-> api('/'。_ALBUM_ID。'/ photos','post',$ post_data);
?>
当我通过我的粉丝管理员帐户删除publish_stream权限时,会出现一个有趣错误。上传的照片不会显示在相册中,而不会显示在新闻流中。但是在照片条中,您看到所有新照片,当您点击它时,它将与所有上传的照片连在一起...它看起来像是一个隐藏的照片。
任何人都有一个线索,如何通过图形API发布照片,而不将其发布到新闻流?
提前感谢
Jurik
我有解决方案!文档中没有提到 - 如果您不想在通过Graph API设置以下参数上传照片时发布Feed:no_story = 1
此信息为在此之前: http://developers.facebook.com/docs/reference/api/照片/
但不知何故,它从这个文档中消失。 :(
如何联系FB,以便他们添加这个VERY重要信息?
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
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
This information was earlier here: http://developers.facebook.com/docs/reference/api/photo/
But somehow it disappeard from this doc. :(
source: Can I upload photos but not post to wall in Facebook?
How to contact FB so that they add this VERY important info?
这篇关于是否可以将照片上传到粉丝专辑而不发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!