Image compression happens at the share stage, so I'm guessing any FB image would be at the same amount of compression as the USB or any other route.
You will definitely introduce even more compression by uploading to Facebook or Twitter from PS4. Currently, the best solution is to copy them to your PC with the help of a USB-stick and upload to somewhere that doesn't compress your pictures further.