Here is the Python code to download a Facebook video download
import yt_dlp
# Get video URL from user
url = input("Enter Facebook video URL: ")
# Set download options
ydl_opts = {
'outtmpl': '%(title)s.%(ext)s', # Save as <video title>.mp4
'format': 'best'
}
# Download
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
ydl.download([url])