Hi,
So these are the ones:-
facebook, validation code etc. sms messages
I do know that Facebook used to use a Jabber server and gave everyone a Jabber ID to work with that and that ID could be used in Messages.
Facebook took the Jabber server down and created a Browser page to use along side your regular login instead.
I don't have a Facebook account so I am not aware if it can send SMS to phone numbers or not. (it would make some sense if it did)
I take it validation codes are one off items that are sent as SMS to your iPhone ?
They sound like they may be non standard SMS items sent to the SMS system from non Carrier based apps.
For instance AIM has a method in the United States only where you can add a mobile phone number (from certain carriers) to your Buddy List (as a Buddy) and you can use the AIM able app (in this case Messages or iChat) to send SMS back and forth
See this page https://help.aol.com/articles/aim-mobile-im-forwarding and then the "Does My Carrier Support... " expansion bit.
I am just wondering if the effected items are non standard SMS items in some way ?
It would seem to be a bit far fetched as there have been many computer based apps for doing this sort of thing for years.

9:22 pm Wednesday; November 16, 2016
iMac 2.5Ghz i5 2011 (Sierra)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
iPhone 6 iOS 10.x and an iPad (2)