Lock Screen Notifications Without Content?
Specifically for SMS/iMessage...

Settings > Notifications > Messages ... 'Show Previews'

That option doesn't exist for Facebook, though as I don't allow Facebook to push notify my phone I'm not sure what options there may be in the app itself.