Using actions to update profile and minifeed
You may have noticed some problems with profile FBML not updating. Also, when posting to this site, your facebook mini-feed was not updating. The latest changes should fix these issues.
Drupal for Facebook now uses actions to update both mini-feed and profile block. Actions give a lot of flexibility, as they can be invoked on just about any user action, or during a cron job. So this new approach should be an improvement.
- Forums:
- Login to post comments

fatal error
i'm using fb, actions and workflow, when i was posting a page, i've got this error message
Fatal error: Call to undefined function: drp() in /modules/fb/fb_actions.module on line 143
how can i solve this problem
thanks
install devel module
Sorry, I left a debug statement in there. You can safely comment out the line that caused the problem. I'll fix it in the next update.
Or, and this would be better while Drupal for Facebook is under development, install the devel module, which provides that function.
In the future, submit this sort of problem to http://drupal.org/project/issues/fb. Thanks.
Any info on how to use actions
Hi Dave, youre ripping along and I hate to get in your way, but any chance of a little more detail on the way we would use the actions to update facebook?
If you know Actions well enough, you'll figure it out
Get the latest code from the project page, or CVS (some things I just checked in this morning).
Install Actions and Workflow (because in Drupal 5.2, its difficult to trigger actions without Workflow. In 6.0 it will be easier). These two modules are pretty involved. If you don't know how to use them, read up on Drupal.org.
Enable the latest fb_actions module. Then when configuring actions, you'll see the ones that pertain to facebook.
So for example, this site has a Workflow associated with forum and story posts. When the node is created, an action is triggered to announce content to the poster's mini-feed.
There are a variety of limitations. For example, the mini-feed posts only work when the poster is logged in. This effectively means it will work only when the user is visiting a canvas page, that is, it would work on apps.facebook.com/drupalforfacebook/node/add/forum, but usually not work on drupalforfacebook.org/node/add/forum. Other actions, like updating a user's profile FBML would work in either case, assuming the infinite session key is configured.
Another limitation in Drupal 5.x is that its difficult to invoke an action when a comment is posted. For instance, when I submit this reply, I'd like your facebook mini-feed to be updated with "Dave Cohen replied to your post...". But that will become much easier in Drupal 6, so I'll just wait until that is released and I update this site before I add that feature.
This is soo über cooL!
This is soo über cooL!