android - Posting with DENY privacy not working (And how to save privacy) -


my android app posts status deny privacy friends (who cannot see), it's not working. here's graph api call:

post me/feed?message=this message &privacy='value':'custom','deny':'friend_1_id,friend2_id'}`  

however, it's working allow privacy this:

post me/feed?message=this message &privacy='value':'custom','allow':'friend_1_id,friend2_id'} 
  1. how can deny achieve goal without using allow?

  2. (important) how can setting custom privacy user's facebook?

    because want facebook app keep privacy (user not need change setting again when using original facebook app).

note: app works facebook sdk 3.8

how can `deny` achieve goal without using `allow`

according facebook developers [src]: by design. when use custom privacy, should specify allow field, or default you'll only person able view post.

so instead of:

post me/feed?message=test&privacy={'value':'custom','deny':'[friend_id]'} 

you should do:

post me/feed?message=test&privacy={'value':'custom', 'deny':'[friend_id]', 'allow':'all_friends'} 

(important) how can setting custom privacy user's facebook?

you cannot ever set part of user settings, graph api. strictly not allowed facebook.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -