# Example usage photo_url = "https://example.com/photo.jpg" # Obtain from Facebook API filename = "downloaded_photo.jpg" download_photo(photo_url, filename)