简体   繁体   English

如何使用C#SDK在Facebook中将相册设为私有

[英]How to make photo album private in Facebook using C# SDK

I am developing a winform (desktop) application in C#. 我正在用C#开发Winform(桌面)应用程序。 How can I create an Album using the Facebook API and also set its privacy as "ONLY ME"? 如何使用Facebook API创建相册并将其隐私设置为“仅我”?

This is described for albums connection of user . 这是针对user albums连接而描述的。 You need to use privacy field. 您需要使用privacy字段。

http://graph.facebook.com/me/albums?name=Demo&privacy={"value":"SELF"}&method=post

Beware: 谨防:

Privacy Policy: Any non-default privacy setting must be intentionally chosen by the user. 隐私权政策:用户必须有意选择任何非默认的隐私权设置。 You may not set a custom privacy setting unless the user has proactively specified that they want this non-default setting. 除非用户主动指定他们想要此非默认设置,否则您不能设置自定义隐私设置。

For more details on albums privacy settings read documentation for albums connection . 有关专辑privacy设置的更多详细信息,请阅读有关albums连接的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM