i log activity of facebook_status by rules.
but after ruining cron the facebook_status activities deleted!

Comments

Stalski’s picture

Status: Active » Closed (cannot reproduce)

Activities are deleted as configured in the administration settings page.
If however your activities are deleted sooner than they are supposed to, they have a timestamp in the past. I don't know why this is happening but it seems like it's the case for you. So most of the time, 3 months is a good setting.

js’s picture

Another reason might be that 'nid' in heartbeat_api_log might be set to a value for a non-existing node. I set this to a fbss 'sid' thinking it could be utilized and discovered that
function heartbeat_cron()
runs
if (!($exists = db_result(db_query("SELECT nid FROM {node} WHERE nid = %d ", $row->nid)))) {

(thanks for heartbeat)

Rob_Feature’s picture

I'm seeing this same behavior and I suspect, as well, that it has to do with a recipient:id being set incorrectly. It happens, for me, on some nodes, but not others. I haven't figured out why yet.

My setup is basically fb_status -> rules -> heartbeat template

On cron, the heartbeat message is deleted.

// Edit //

After further investigation I see it was becuase my rule which creates my heartbeat message was inserting the UID as the NID...this meant that if the UID didn't (by coincidence) match a NID, then the status was deleted. So, dont leave the NID fields blank in your rule if you're referencing a user!