Facebook privacy parameter not working -


i'm working on fb-app offline-publishing on behalf of users , cannot privacy parameter working.

the facts:

  • app authorized publish_actions permission
  • simple publishing works: without privacy-parameter posts default visibility chosen during authorization process
  • publishing reduced visibility works. 1 reduces default visibility (public) friends: privacy={'value':'all_friends'}

now want publish , limit visibility explicit list of users. according doc https://developers.facebook.com/docs/reference/api/privacy-parameter/ can combine 'value' , 'allow', used parameter:

{'value': 'custom', 'allow': '{ real_id }'} 

but unfortunately response:

{"error":{"message":"(#100) 'friends' value not recognized","type":"oauthexception","code":100}} 

although friends-parameter deprecated, tried these combinations 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 not recognized","type":"oauthexception","code":100}} 

it great if because lost on 1 :(

thanks in advance!

ok, after contacting facebook-support answer own question. maybe helps else...

1) examples fb uses in documentation confusing:

"privacy={'value': 'custom', 'allow': '{friend-list-id}'}" 

the outer brackets correct, inner ones meant replaced friends-id or friends-ids comma separated list. valid parameter be:

"privacy={'value': 'custom', 'allow': '1234567,3456789'}" 

2) custom value privacy not supported when publishing app-access-token. user-access-token supports this.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -