After train station staff discovered the cat named Lilou (not to be confused with the almost-iconic Sci-Fi character) in Dublin's Pearse Street railway station, they took care of her while they searched for her owner.
That's where Twitter came in. The staff tweeted about the cat on the IrishRail account, hoping her owner would reply and claim her, and that's just what happened.
It probably seemed like a shot in the dark at first; the area served by Dublin's rail system is huge. But the staff looked at security camera footage from the stations and found a shot of Lilou sneaking into a station. Thanks to the video, they were able to be specific about the her origins in their tweet, which also included a photo.
Once the cat was returned to her owner, she was awarded a rail pass, photo ID and all. Because you can't just walk right onto the train without paying a fare!