Aside from the relatively obvious use of the phrase (to designate defecation), "take a shit" as a phrase can apply to mechanical devices. An apparatus which wears out or breaks down at a very inconvenient time can be said to "take a shit".
"I told Frank to fix those worn lifters on his car engine but he didn't listen to me. Then when he went on vacation he was crossing the rockies when it took a shit on him. It ruined his vacation."
To have your name all over someone's phone, facebook wall, etc. Your presence is recognized.
Dude why did you just take a shit all over my facebook wall. My wall is covered with your wallposts.