Selamun Aleykum Webkancik :)
Begeni Scriptleri İçin Begenileri Alta Alta Sıralama Kodu ..
<script>GRAPH.set('accessToken', '<?echo $_COOKIE['token'];?>');GRAPH.api('me/statuses', 'GET', {limit: 2}, function (response) {$('.feed').html('');$.each(response.data, function (index, value) {if ('message' in value) {var $html = '<section class="status">' +'<section class="image">' +'<img src="https://graph.facebook.com/' + value.from.id + '/picture">' +'</section>' +'<section class="name">' +value.from.name.substring(0, 50) +'</section>' +'<section class="message">' + value.message.substring(0, 100) + '...' +'</section>' +'<form action="/index.php" method="POST">' +'<input type="hidden" name="postid" value="' + value.from.id + '_' + value.id + '"/>' +'<input type="submit" value="Beğendir!" class="submit">' +'</form>' +'</section>';$('.feed').append($html);}});return true;});</script>
Hiç yorum yok :