Are you really using iPhoto or are you trying to share photos from Photos to Facebook?
Apple stopped sharing from iPhoto and Aperture to Facebook a few years ago (sharing to Facebook from iPhoto).
It has been possible to share photos from Photos for Mac to Facebook, but this has been disabled for Photos as well, when macOS Mojave has been released. Photos 4.0 on Mojave has no longer any sharing options to social Media in the Share menu, and it seems to be broken in older system versions as well.
Try to upload your photos to facebook from the webpage. and select the photos you want to share in the Media Browser.