<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */
	$key = 'Facebook video downloader';
	$mkey = 'Tải video facebook HD, get linkmp4 facebook video, download video facebook full hd 4k 1080p...';
	require '../../template/header.php';
?>

	<div class="col-right-xs">
		<div class="mainblok">
			<div class="phdr">
					<div vocab="https://schema.org/" typeof="BreadcrumbList">
						<span property="itemListElement" typeof="ListItem">
							<a href="/"  property="item" typeof="WebPage">
								<i class="fa fa-home"></i> <span property="name">Home</span>
							</a>
							<meta property="position" content="1">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<a href="/getlink/"  property="item" typeof="WebPage">
								<i class="fa fa-chain-broken"></i> <span property="name">GetLink</span>
							</a>
							<meta property="position" content="2">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<span property="name">Facebook video downloader</span>
							<meta property="position" content="3">
						</span>
					</div>
			</div>
			<div class="newsx">Facebook video downloader is an online tool to help you download Facebook videos in MP4 format & HD quality to your devices (Android, iPhone, Mac, Windows, Linux etc.). Fb video downloader goes to the facebook video page, and directly extracts the MP4 links of the video. This is a free tool to download videos from facebook, without any need to install plugin or software.</div>
			<div class="menu">
				<strong>Link hỗ trợ:</strong><br />
				https://www.facebook.com/105264354186108/videos/535711887169730/<br />
				<form role="form" class="form-horizontal" id="form" method="post" onSubmit="return false;">
					<input type="text" name="link" id="link" placeholder="https://www.facebook.com/105264354186108/videos/535711887169730/">
					<input type="submit" id="submit" value="Lấy link get" name="submit" />
				</form>
			</div>
			<div id="DownloadLink"></div>
		</div>
		
<?php require '../list.php'; ?>
	</div>
	<div class="col-left-xs">
<?php require '../../tools/toolslist.php'; ?>
	</div>
	<div class="clear"></div>

<script>
$(document).ready(function(){
	$("#submit").click(function(){
		$("#submit").addClass('disabled');
		$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><img src="/template/images/loading.svg" /></div>').slideDown('slow');
		var form = $('#form')[0];
		var formData = new FormData(form);
		$.ajax({
			url: "api.php",
			type: "POST",
			data:  formData,
			contentType: false,
			cache: false,
			processData:false,
			success: function(rs)
			{
				res = JSON.parse(rs);
				if(res.success){
					$("#submit").removeClass('disabled');
					$("#DownloadLink").hide().html(res.success).slideDown('slow');
				}
				if(res.error){
					$("#submit").removeClass('disabled');
					$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">'+res.error+'</i></div>').slideDown('slow');
				}
			},
			error: function() 
			{
				$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">Có lỗi hệ thống, vui lòng kiểm tra lại!</i></div>').slideDown('slow');
			}
		});
		$("#link").attr("placeholder", $("#link").val()).val("");
	});
});

</script>
<script async src="https://cdn.jwplayer.com/libraries/rlx7bqvD.js"></script>
<?php
	require '../../template/footer.php';
?>