I am working on a project that requires the option to harden security preferences for certain items (particularly pictures) in a Facebook user's account. Is there an API or FCP call that I could make that would let my application control this for them? I understand that Facebook closed some of its API functionality a while back due to security concerns, and I haven't found anything obvious on the developer WIKI.
Tony Cagle wrote:I understand that Facebook closed some of its API functionality a while back due to security concerns, and I haven't found anything obvious on the developer WIKI.
Yes, and no! For photos, updates to the stream and a few other Facebook objects you can pass a privacy parameter which is a JSON-encoded string which defines custom privacy settings.
The suggested implementation is to present users with a dialog box enabling to set these preferences within your application and to not override settings blindly. For example, setting all photos to "shown" if a user has explicitly set them to "hidden".
Another, perhaps more hidden, Facebook method is admin.setRestrictionInfo and the <fb:restricted-to> FBML element. These allow you to restrict application access to users above/below a certain age or geographic location.
Do these sound like something you need?
Author of the upcoming book entitled "The Developer's Guide to Social Programming" available to pre-order on Amazon.