Facebook Friend Based Permisions
ahansen1 - February 28, 2009 - 10:36
| Project: | Drupal for Facebook |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
The desired functionality is to be able to limit node access based on if the node author is in their friends list.

#1
I've been attempting to add this bit of functionality and stumbled upon the deprecated fb_node_grantsXXX method. It seems that somehow this used in conjunction with an implementation of hook_node_access_records it would be possible to accomplish this sort of functionality. However, I'm a bit new to the node access stuff and am not sure if this is correct? Especially given that this method has been deprecated? Thought maybe this path was already explored and resulted in a dead end?
Another potential option would appear to be modifying the fb_canvas_nodeapi method to verify that the user is in the friends list and if not update the node content to contain an access denied error message.
Anyone have any thoughts on these? Or have any other ideas on accomplishing this?
#2
I mentioned this in my list of desired features. I'd like to have a fb_access.module which uses drupal's node_access features. It would enable grants based on friendship and also group or network membership.
If anyone takes a stab at this, please submit a patch. If anyone can sponsor the development, that would be great, too. It's a non-trivial chunk of work.