Publishing to FB via Cron
| Project: | Drupal for Facebook |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hi Dave,
What currently works and what does not for publishing to FB?
I managed to get a Tempalte Bundle to work when a new user gets created and publish a one-liner to the news feed. But most other things seem to do nothing.
In particular, since I know one line templates to news feed works, I tried to update via a cron job.
- Created template content
- created action (perform once for each user) to use above template.
- created cron trigger to point to above action.
When I run cron.php I see in the logs that the cron ran, but nothing else. I have enabled fb_verbose, and uncommented the watchdog call at the top of fb_actions_cron_per_user, but nothing appears in log.
I notice that in fb_cron.module the action_fb_cron_per_user says that it is deprecated... does this mean that this will only work with older drupal versions?

#1
Ah. I just found your issue posted to the actions module. Looks like I just have to use a newer version of actions (currently using 5.x-2.6).
#2
hmm. odd, I don't have the wrong version. they didn't implement your proposed changes to actions.module exactly the way you said.
http://drupal.org/node/260955
It seems the following change from actions.module was missed.
function actions_cron() {
- $aids = _actions_get_hook_aids('cron');
+ $aids = _actions_get_hook_aids('cron', 'run');
If I add that it works.
#3
Thanks for following up on the other issue thread.
I plan to remove fb_cron.module. I haven't used it in a while. It was an early attempt and I think actions is now the way to go. (Even with it's 5.x problems).
#4
Automatically closed -- issue fixed for two weeks with no activity.