This text was actually a malicious script. This script created events and pages from your account or sent your friends spammy links, instead of showing you what it advertised (ex: who viewed your profile/timeline). This is called a malicious script scam.
Close your internet window or log out of Facebook to end the attack and secure your account.
If you didn't paste text into your address bar:
It's possible that malicious software was downloaded to your computer or that your login information was phished. You can secure your account here.
To remove the spammy content:
If you can't get into your account: visit our Security page.