I'm wide awake.
So to answer my own question, yes this was just an ad for Facebook. That said, the message behind this video is far superior to the military theme in "Part of Me".
Serendipity or did Zuckerberg pay her to promote Timeline? The official "lyric video" tracks Perry's last two years via the social media platform.