It not depends only on composition settings but renderss settings too. Share a screen capture of your render settings inside After Effects or Adobe Media Encoder so we can help you to solve this problem
If your settings are perfect but the media player is not configured specifically to do vertical and match the aspect ratio you will always get black bars. Vertical videos on Facebook on a computer will always have black bars or the blurred BG black bars. That's how media players work.