That is a recent problem with FaceBook and some other third party apps. These apps have not been updated to use the new Photos Picker in Photos 8, when they try to access the System Photos Library via "Media > Photos". Most of the system apps have been updated by Apple to use the Photos Picker and can show the albums and folders (Mail, Preview, Pages, etc,), but Safari is still missing from the list. So we are stuck, when we need to use a web browser when sharing photos.
In that case it is easier to keep Photos open and find the photos we want to share in Photos, then export them to a folder on the Desktop and upload from there. Or, when sharing a single photo, look up the filename in Photos and paste it into the search field in the upload dialog, where we are only seeing a flat list of photos without albums and folders.
See: macOS Ventura - New Features - Apple
"New Photos picker in system apps
A new Photos picker makes it easy to import photos and videos into system apps from your Photos library. Search your library to find just what you’re looking for."
And Shared albums are not a part of your Photos Library. They are shown in Photos, but are not visible in "Media> Photos" at all. You would have to import the shared photos from the shared albums to see them in "Media > Photos".