How to set Facebook album privacy with Graph API?

血红的双手。 提交于 2020-01-03 15:59:12

问题


I would like to know if it's possible to set the privacy setting for a specific Facebook album with RestFB Java library ?

Thank you very much,

Regards,

Anthony


回答1:


You can set privacy settings when the album is created.

Currently, you can not update the settings, nor can you delete an existing album via API, in case you wanted to just delete and recreate it as a work around. http://bugs.developers.facebook.net/show_bug.cgi?id=17111

When you create the album, you need to create a privacy object and include it as a parameter in the POST request, which is a JSON-encoded string that is described more clearly in the documentation of a Post object here: https://developers.facebook.com/docs/reference/api/post/




回答2:


It's not possible for the moment. On the main API page on Facebook, you can see which operations are possible. Sadly, updates are not one of them:

http://developers.facebook.com/docs/api




回答3:


curl https://graph.facebook.com/me/albums -F 'access_token=xxx' -F 'name=my album' -F 'privacy={"value":"ALL_FRIENDS"}'



来源:https://stackoverflow.com/questions/3880413/how-to-set-facebook-album-privacy-with-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!