I have enable all the facebook related modules more specifically these required one's for the facebook cron job: Facebook Cron Jobs (enabled), Drupal for Facebook Actions (enabled), Actions (enabled), Facebook Infinite Session (enabled).

But when I am creating a Facebook App, in the cron settings there are no actions to select. Let me know if you need more info.. this is with the latest code (Nov4)

Comments

Drupal_’s picture

I did create some actions using the actions module

Drupal_’s picture

Ok I just created the Facebook set reference FBML and can see it in the cron actions. (I had earlier created the Facebook set profile FBML and Post to Facebook mini-feed. And I could not see it on the cron actions.) I will try to see if I can do any thing meaningful with set reference FBML .... not sure why it did not work with the Facebook set profile FBML... and I still don't understand how I will use the Post to Facebook mini-feed action.

Drupal_’s picture

Component: Code » Documentation
nlowhor’s picture

I'm seeing this same issue. I can get the set reference action to appear in my facebook app cron actions but not the other 2.

Dave Cohen’s picture

I'm not surprised this is a little flakey. The cron and actions stuff I put together as I needed it, and I haven't tested very many permutations.

In the most recent actions module, the way actions are defined changed completely. And it's my assumption that the newer way is also used in Drupal 6. Recently I converted the facebook actions to this new scheme. And I don't feel much like supporting the older actions, knowing they will go away. So I recommend you get the very latest Actions module. The HEAD version from CVS works with Drupal 5.x.

I recommend you get that, then disable fb_cron module, it's no longer needed. Instead schedule a cron action using the actions module. I talk about this a bit at the very end of this screencast: http://www.dave-cohen.com/node/2246

nlowhor’s picture

The latest version I can find is 5.x-1.x-dev. Is there a more recent development release hiding somewhere that I can't seem to locate?

Also, I'll definitely have a look at your screencast to see what other info I can pick up.

Thanks.

Dave Cohen’s picture

Something like this will get you the latest version of actions:

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d actions contributions/modules/actions

I've realized there is a problem with the resolution of my screencast, which makes it particularly hard to read. Hopefully I'll be able to fix that tonight.

thomasmuirhead’s picture

Sorry, a bit noobish...but where do we get the latest version of actions?

or what do we do with that code to get the latest version of actions?

thanks...enjoying your screencast...only the actions bit I can't manage

nlowhor’s picture

Thanks, Dave. I've never had to use cvs before. I thought there were never versions somewhere.

@thomasmuirhead
You can find out more about cvs at http://drupal.org/node/93996. This is just a command you can run from inside your drupal install folder on the server. You can use a SSH client like http://www.chiark.greenend.org.uk/~sgtatham/putty/ to get to a command line.
This command created an actions folder containing the latest version. However, I replaced the previous version and I'm getting a fatal error now. I'll have to sort that out tonight. Can't mess with it right now.

nlowhor’s picture

Ok, I couldn't help but mess with it now. For some reason I had to copy actions.inc into the /includes folder. The site works again and I seem to have a new version of Actions.

I still don't see the other FB actions in the cron settings on the app. However, you said I needed to handle the cron job another way now. I'll look into that more later and see what I can figure out.

Dave Cohen’s picture

Oh right, I don't know what they were thinking with that actions.inc nonsense. Perhaps they knew actions would move to core and they just acted prematurely.

Anyway, I edited the last lines of actions.module to look like this, so that everything remains in the actions folder:

// TODO: move to core bootstrap sequence
require_once(drupal_get_path('module', 'actions') . '/actions.inc');
include_once(drupal_get_path('module', 'actions') . '/default_actions.inc');
nlowhor’s picture

Dave, I just watched your second screencast. Excellent! The part about using actions was exactly what I needed. I didn't notice the Assign Actions tab. I'm pretty sure I can get it to do what I need.

However, I just started trying to set this up and ran into a problem. When I attempt to assign an action and click Add, it doesn't show up as being added like it does on your screencast. Have you seen this?

nlowhor’s picture

Well it's working now. As i posted at http://drupal.org/node/194566 it seems that something went wrong with the database and caused all sorts of issues. Any suggestions why this would happen and how I can avoid it? If this app/site were live, this would be terrible. :(

Thanks!

thomasmuirhead’s picture

Hi nlowhor

I tried running that cvs on my server and got this response:

[topfootball@s449 www]$ cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d actions contributions/modules/actions
cvs checkout: Updating actions
U actions/README.txt
U actions/actions.inc
U actions/actions.info
U actions/actions.install
U actions/actions.module
U actions/default_actions.inc
cvs checkout: Updating actions/po
U actions/po/actions.pot
U actions/po/es.po
U actions/po/fr.po

but the Assign Actions doesn't appear...am I getting the wrong thing from CVS?

Dave Cohen’s picture

You have to check it out into the right place. move the newly created actions directory into your drupal modules directory. Replace the old actions, if you had it installed.

then run the update.php script, or enable the actions module if it wasn't already.

nlowhor’s picture

You beat me to it. I think I had the answer to that one. :)

thomasmuirhead’s picture

Again, thank you guys...can't believe it was as simple as that, sorry. I had to copy the actions.inc over to /includes too...not sure what that's about.

nearly there...

Letharion’s picture

Status: Active » Closed (won't fix)

Since Drupal 5 is no longer supported, I'm taking the liberty to close all FB D5 issues. Issues that haven't moved since D5 are unlikely to still be valid.