I'm working on an fb-app which does offline-publishing on behalf of its users and I cannot get the privacy parameter working.
The facts:
- app is authorized with publish_actions permission
- simple publishing works: without any privacy-parameter the posts get the default visibility which was chosen during authorization process
- publishing with reduced visibility also works. This one reduces the default visibility (public) to only friends: privacy={'value':'ALL_FRIENDS'}
Now I want to publish and limit the visibility to a explicit list of users. According to this doc https://developers.facebook.com/docs/reference/api/privacy-parameter/ I can combine 'value' and 'allow', so I used this parameter:
{'value': 'CUSTOM', 'allow': '{ REAL_ID }'}
but unfortunately this is the response:
{"error":{"message":"(#100) 'friends' value was not recognized","type":"OAuthException","code":100}}
Although the friends-parameter is deprecated, I tried these combinations as well with no luck:
{'value': 'CUSTOM', 'allow': 'ALL_FRIENDS'}
-> {"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}
{'value': 'CUSTOM', 'allow': 'ALL_FRIENDS', 'deny': '{ REAL_ID }'}
-> {"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}
{'value': 'CUSTOM', 'friends': 'ALL_FRIENDS'}
-> {"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}
{'value': 'CUSTOM', 'friends': 'SOME_FRIENDS', 'allow': '{ REAL_ID }'}
-> {"error":{"message":"(#100) 'friends' value was not recognized","type":"OAuthException","code":100}}
It would be great if someone could help because I am completely lost on this one :(
Thanks in advance!