Created
December 1, 2011 19:42
-
-
Save ekoneil/1419286 to your computer and use it in GitHub Desktop.
Configuring privacy for stories published to Facebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Works for stream.publish and open graph actions | |
# Only Me privacy | |
# -F "privacy={'value':'SELF'}" \ | |
# Subset of friends privacy | |
# -F "privacy={'value':'CUSTOM', 'friends':'SOME_FRIENDS', 'allow': 'uid-1,uid-2'}" \ | |
# Friend lists | |
# -F "privacy={'value':'CUSTOM', 'friends':'SOME_FRIENDS', 'allow': 'friend-list-1,friend-list-2'}" \ | |
# Docs | |
# https://developers.facebook.com/docs/reference/rest/stream.publish/ | |
# Example: | |
curl -F "message=Stream story created via stream.publish" \ | |
-F "privacy={'value':'CUSTOM', 'friends':'SOME_FRIENDS', 'allow': 'friend-list-1,friend-list-2'}" \ | |
-F "access_token=$T" \ | |
https://graph.facebook.com/me/feed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can you handle privacy on iOS?
http://stackoverflow.com/questions/23530096/ios-facebook-sdk-startwithgraphpathparameters-post-to-just-some-friends-program