如何通过图形 API 更改 Facebook 上发布的照片的隐私设置
当在用户墙上发布帖子时(通过图形 API),我知道如何使用“隐私”字段更改隐私设置,并且效果很好。
但是,如何对发布到相册中的照片执行相同的操作?相册中的照片也有隐私设置(您可以手动设置它们,所以我猜您可以通过 API 设置它们,或者不能吗?)。 Photo 对象的隐私字段不存在。我认为它可能没有记录,所以我尝试了一下,但它不起作用。
那么如何更改照片的隐私设置呢? (最好是在发布的那一刻)
谢谢 米。
When publishing a post on the user's wall (via the graph API) I know how to change the privacy settings using the "privacy" field, and it works fine.
However, how do I do the same on a photo published into an album? Photos in albums also have privacy settings (you can set them manually so I guess you can set them via the API, or can't you?). The privacy field for the Photo object does not exist. I thought it may be undocumented so I tried it, but it doesn't work.
So how do I change the privacy settings for a photo? (ideally at the very moment of publishing it)
thanks
m.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,发布时不能直接设置照片的隐私(API 似乎只接受“源”和“消息”值)。
但是,如果您创建一个新相册并传入值为“everyone”的“visible”,则该相册为“public”。
如果您随后将照片上传到该相册中,那么该照片也将是“公开的”。
据我所知,“可见”设置没有记录...我在 FQL 表中找到了它: http://developers.facebook.com/docs/reference/fql/album/
您可能会认为它接受“隐私”,但根据我的经验,它不接受。 http://developers.facebook.com/docs/reference/api/album/
From what I've seen you can't set a Photo's privacy directly when publishing (the API seems to only take "source" and "message" values).
However, if you create a new Album and pass in "visible" with a value of "everyone" then the album is "public".
If you then upload a Photo into that album then the Photo will also be "public".
To my knowledge the "visible" setting is undocumented... I found it in the FQL table: http://developers.facebook.com/docs/reference/fql/album/
You would think it accepted "privacy" but in my experience it does not. http://developers.facebook.com/docs/reference/api/album/