Can you get a fungus from rubbing or massaging somebody's feet that doesn't have fungus there?

Not if they don't. You can't get a fungal infection from someone's feet unless they have a fungal infection on their feet. You can't catch what someone doesn't have.
No . Rubbing some ones feet that does not have fungus will not lead to you developing fungus.