Facebook post data has empty privacy field

走远了吗. 提交于 2019-12-10 13:27:09

问题


We are having an issue with one facebook users account where the privacy field returned for his posts are always blank. I have tried reproducing this with my account or a test account, but in all cases the privacy is filled in. Here is a sample using the graph api tool (some fields removed for brevity):

{
  "id": "<deleted_for_privacy>", 
  "from": {
    "name": "Joe Blog", 
    "id": "<deleted_for_privacy>"
  }, 
  "story": "Joe Blog added a new photo.", 

  "picture": "<deleted_for_privacy>", 
  "link": "<deleted_for_privacy>", 
  "icon": "<deleted_for_privacy>", 
  "privacy": {
    "value": ""
  }, 
  "type": "photo", 
  "status_type": "added_photos"
}, 

According to the documentation for privacy the field this should always contain a value.

My initial thoughts was it was related to the blackberry app being used and the old mobile version setting, but posting from the desktop browser results in the same issue.

So what does a blank setting mean? Is it public, private or a bug?


回答1:


Not sure this is your case, but if the user is posting to a page, event, group or another users's feed, the privacy field is expected to be empty.

See the first note here (not the official fb doc page, I know):

http://api-portal.anypoint.mulesoft.com/facebook/api/facebook-graph-api/docs/reference/privacy-parameter




回答2:


This is by design. You require a page access token or admin user access token to retrieve this field.

Source: https://developers.facebook.com/bugs/300329193480725/?comment_id=345320875630426



来源:https://stackoverflow.com/questions/15891254/facebook-post-data-has-empty-privacy-field

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