I know the basics of how to post a status update, link, etc. from within a Facebook application, thanks to http://developers.facebook.com/docs/guides/canvas/, but I can’t figure out whether it’s possible to limit the post’s visibility to a certain preset list of friends of the user authorizing the post (since the documentation on Facebook’s site isn’t exactly the best).
Is it possible to post to the user’s wall from within my application so that it’s only visible to a pre-selected list of friends? I’m mimicking the functionality of Google Plus’s “Circles” feature, where the user can have various groups of friends and post to only those group lists.
This is definitely possible. Please read the Post documentation, especially the
privacyparameter:A small example using the PHP-SDK:
What I’ve done here:
publish_streampermission)Please note that you have a lot of options here, you can deny specific user, allow networks, allow Friends list…it’s really up to you to customize the
value,friends,allow,denyandnetworksfields.