Luffy,
A cell phone is not a camera.
Thus the meta data at the beginning of each photo file that tell the reading device what the file is , how it is coded and orientated is not understood by a lot of computer programs.
I phone photos seem to be the most affected and that would be deliberate on any microsloth system.
So what you have to do is transfer the photos to your computer, open them in whatever you use for photo editing, THEN SAVE THEM to the computer prefferably with a different name.
That overwrites some of the meta data so the photos will now post correctly