Twitter is no longer being used - depreciated, and I suspect FB is headed the same way.
there are SDKs put out by both FB and Twitter, but they are difficult to implement. Don’t relate to Swift 4, and are themselves packed with depreciated obj-c code. Where there is a Swift section it’s old version code.
and in any case they rely on cocoa pods. Yet another third party addition.
I‘ve Yet to find a Swift 4 how-to that successfully gets even a basic FB or Twitter interface into an app In a clean and transparent way.
i Live in hope that a future update will give us a new and revamped social.framework.