Changed javascript to sent the facebook ids of the actions to the database.