Facebook post/video URL regex
<p>I'm trying to distinguish between whether a given Facebook URL is a post or a video.</p>

<p>Luckily, <a href="https://developers.facebook.com/docs/plugins/oembed-endpoints" rel="nofollow noreferrer">Facebook lists the possible URLs</a> for both posts and videos:</p>

<blockquote>
  <p>Posts:</p>
  
  <ul>
  <li>https://www.facebook.com/{page-name}/posts/{post-id}>  </li>
  <li>https://www.facebook.com/{username}/posts/{post-id}>  </li>
  <li>https://www.facebook.com/{username}/activity/{activity-id}>  </li>
  <li><p>https://www.facebook.com/photo.php?fbid={photo-id}></p></li>
  <li><p>https://www.facebook.com/photos/{photo-id}>  </p></li>
  <li>https://www.facebook.com/permalink.php?story_fbid={post-id}>  </li>
  <li>https://www.facebook.com/media/set?set={set-id}>  </li>
  <li>https://www.facebook.com/questions/{question-id}>  </li>
  <li>https://www.facebook.com/notes/{username}/{note-url}/{note-id}>  </li>
  </ul>
  
  <p>Videos:</p>
  
  <ul>
  <li>https://www.facebook.com/{page-name}/videos/{video-id}/>  </li>
  <li>https://www.facebook.com/{username}/videos/{video-id}/>  </li>
  <li>https://www.facebook.com/video.php?id={video-id}>  </li>
  <li>https://www.facebook.com/video.php?v={video-id}>  </li>
  </ul>
</blockquote>

<p>However, I have no idea how to use regex to check if a given URL matches one of the above URLs.</p>

<p>I've started a regex101 page, but I'm not sure where to go from here:</p>

<p><a href="https://regex101.com/r/M7RTVP/2" rel="nofollow noreferrer">https://regex101.com/r/M7RTVP/2</a></p>