Menampilkan video facebook dengan jquery

Contoh kode Jquery :

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>append demo</title>
  <style>

  </style>
  <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>


<script>
$.ajax({
    type: "GET",
    url:"https://graph.facebook.com/742147952596730/",
    dataType: "jsonp",
    cache: true,
    success: function(data) {
            $("#hasil").append(data.embed_html);
    }
});
</script>

<div id="hasil"></div>

</body>
</html>



Smoga bermanfaat..........!

Previous
Next Post »