Advertisement
Falcon-G21

FB About Using Access Token

May 4th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.89 KB | None | 0 0
  1. <?php
  2. function auto($url){
  3. $ch = curl_init();
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 3);
  6. curl_setopt($ch, CURLOPT_HEADER, 0);
  7. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,200);
  8. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31');
  9. curl_setopt($ch, CURLOPT_COOKIE,'cookie.txt');
  10. curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');
  11. curl_setopt($ch, CURLOPT_COOKIEJAR,'cookie.txt');
  12. curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  13. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  14. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
  15. curl_setopt($ch, CURLOPT_URL, $url);
  16. $res = curl_exec($ch);
  17. curl_close($ch);
  18. return $res;
  19. }
  20. $access_token= file_get_contents('toket_cewek');
  21. $about =json_decode(auto('https://graph.facebook.com/me/?&access_token='.$access_token),true);
  22. ?>
  23. <html>
  24. <head>
  25. <title>About <?php echo $about['first_name'] ?></title>
  26. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  27. <style type="text/css">*{margin:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}body,html{margin:0;padding:0;font:16px/1.4 Lato,sans-serif;color:#fefeff;-webkit-font-smoothing:antialiased;font-smoothing:antialiased;font-family:Comic Sans MS}body{background:#080510;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}h1{font:2.75em Cinzel,serif;font-weight:400;letter-spacing:.35em;text-shadow:0 0 25px rgba(254,254,255,.85)}h2{font:1.45em Cinzel,serif;font-weight:400;letter-spacing:.5em;text-shadow:0 0 25px rgba(254,254,255,.85);text-transform:lowercase}[class^=letter]{-webkit-transition:opacity 3s ease;-moz-transition:opacity 3s ease;transition:opacity 3s ease}.letter-0{transition-delay:.2s}.letter-1{transition-delay:.4s}.letter-2{transition-delay:.6s}.letter-3{transition-delay:.8s}.letter-4{transition-delay:1s}.letter-5{transition-delay:1.2s}.letter-6{transition-delay:1.4s}.letter-7{transition-delay:1.6s}.letter-8{transition-delay:1.8s}.letter-9{transition-delay:2s}.letter-10{transition-delay:2.2s}.letter-11{transition-delay:2.4s}.letter-12{transition-delay:2.6s}.letter-13{transition-delay:2.8s}.letter-14{transition-delay:3s}h1,h2{visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}h1.transition-in,h2.transition-in{visibility:visible}h1 [class^=letter],h2 [class^=letter]{opacity:0}h1.transition-in [class^=letter],h2.transition-in [class^=letter]{opacity:1}#container{display:table;position:absolute;z-index:20;width:100%;height:100%;text-align:center;cursor:none}#container>div{display:table-cell;vertical-align:middle}#container p{position:absolute;width:100%;left:0;bottom:25px;font-size:.8em;letter-spacing:.1em;font-weight:300;color:#76747a;-webkit-font-smoothing:subpixel-antialiased;font-smoothing:subpixel-antialiased}#container p strong{color:#b3abc5}#container p span{font-size:.75em;padding:0 2px}#canvas{position:absolute;z-index:10;top:0;left:0;width:100%;height:100%;cursor:none}#stats{position:absolute;z-index:10;left:10px;top:10px}.dg.ac{z-index:100!important}.STYLE4{color:#FFF}
  28. </style>
  29. </head>
  30. <body>
  31. <div id="container">
  32. <div><br><br><br>
  33. <?php
  34. echo '<img src="https://graph.facebook.com/'.$about['id'].'/picture?type=large" height="150" width="150">';
  35. ?>
  36. <br><br><br><br><br>
  37. <h1 id="h1"><?php echo $about['name'] ?></h1>
  38. </br>
  39. <h2 id="h2"><?php echo $about['birthday'] ?></h2>
  40. <br>
  41. <br>
  42. <h3></h3>
  43. <h3 id="h3">Nothing Here but Just Say HELLO to Me</h3>
  44. <br>
  45. <h3 id="h3">www.facebook.com/tinkere21</h3>
  46. </div>
  47. </div>
  48. <canvas id="canvas"></canvas>
  49. <script>
  50. var Stats=function(){var e=Date.now(),t=e,i=0,n=1/0,r=0,s=0,o=1/0,a=0,l=0,h=0,c=document.createElement("div");c.id="stats",c.addEventListener("mousedown",function(e){e.preventDefault(),v(++h%2)},!1),c.style.cssText="width:80px;opacity:0.9;cursor:pointer";var u=document.createElement("div");u.id="fps",u.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#002",c.appendChild(u);var d=document.createElement("div");d.id="fpsText",d.style.cssText="color:#0ff;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",d.innerHTML="FPS",u.appendChild(d);var p=document.createElement("div");for(p.id="fpsGraph",p.style.cssText="position:relative;width:74px;height:30px;background-color:#0ff",u.appendChild(p);74>p.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#113",p.appendChild(f)}var m=document.createElement("div");m.id="ms",m.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;display:none",c.appendChild(m);var g=document.createElement("div");g.id="msText",g.style.cssText="color:#0f0;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",g.innerHTML="MS",m.appendChild(g);var y=document.createElement("div");for(y.id="msGraph",y.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0",m.appendChild(y);74>y.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#131",y.appendChild(f)}var v=function(e){switch(h=e){case 0:u.style.display="block",m.style.display="none";break;case 1:u.style.display="none",m.style.display="block"}},b=function(e,t){var i=e.appendChild(e.firstChild);i.style.height=t+"px"};return{REVISION:11,domElement:c,setMode:v,begin:function(){e=Date.now()},end:function(){var h=Date.now();return i=h-e,n=Math.min(n,i),r=Math.max(r,i),g.textContent=i+" MS ("+n+"-"+r+")",b(y,Math.min(30,30-30*(i/200))),l++,h>t+1e3&&(s=Math.round(1e3*l/(h-t)),o=Math.min(o,s),a=Math.max(a,s),d.textContent=s+" FPS ("+o+"-"+a+")",b(p,Math.min(30,30-30*(s/100))),t=h,l=0),h},update:function(){e=this.end()}}};
  51. </script>
  52. <script>
  53. ;(function(window) {
  54. var ctx,
  55. hue,
  56. logo,
  57. form,
  58. buffer,
  59. target = {},
  60. tendrils = [],
  61. settings = {};
  62. settings.debug = true;
  63. settings.friction = 0.5;
  64. settings.trails = 20;
  65. settings.size = 50;
  66. settings.dampening = 0.25;
  67. settings.tension = 0.98;
  68. Math.TWO_PI = Math.PI * 2;
  69. // ========================================================================================
  70. // Oscillator
  71. // ----------------------------------------------------------------------------------------
  72. function Oscillator(options) {
  73. this.init(options || {});
  74. }
  75. Oscillator.prototype = (function() {
  76. var value = 0;
  77. return {
  78. init: function(options) {
  79. this.phase = options.phase || 0;
  80. this.offset = options.offset || 0;
  81. this.frequency = options.frequency || 0.001;
  82. this.amplitude = options.amplitude || 1;
  83. },
  84. update: function() {
  85. this.phase += this.frequency;
  86. value = this.offset + Math.sin(this.phase) * this.amplitude;
  87. return value;
  88. },
  89. value: function() {
  90. return value;
  91. }
  92. };
  93. })();
  94. // ========================================================================================
  95. // Tendril
  96. // ----------------------------------------------------------------------------------------
  97. function Tendril(options) {
  98. this.init(options || {});
  99. }
  100. Tendril.prototype = (function() {
  101. function Node() {
  102. this.x = 0;
  103. this.y = 0;
  104. this.vy = 0;
  105. this.vx = 0;
  106. }
  107. return {
  108. init: function(options) {
  109. this.spring = options.spring + (Math.random() * 0.1) - 0.05;
  110. this.friction = settings.friction + (Math.random() * 0.01) - 0.005;
  111. this.nodes = [];
  112. for(var i = 0, node; i < settings.size; i++) {
  113. node = new Node();
  114. node.x = target.x;
  115. node.y = target.y;
  116. this.nodes.push(node);
  117. }
  118. },
  119. update: function() {
  120. var spring = this.spring,
  121. node = this.nodes[0];
  122. node.vx += (target.x - node.x) * spring;
  123. node.vy += (target.y - node.y) * spring;
  124. for(var prev, i = 0, n = this.nodes.length; i < n; i++) {
  125. node = this.nodes[i];
  126. if(i > 0) {
  127. prev = this.nodes[i - 1];
  128. node.vx += (prev.x - node.x) * spring;
  129. node.vy += (prev.y - node.y) * spring;
  130. node.vx += prev.vx * settings.dampening;
  131. node.vy += prev.vy * settings.dampening;
  132. }
  133. node.vx *= this.friction;
  134. node.vy *= this.friction;
  135. node.x += node.vx;
  136. node.y += node.vy;
  137. spring *= settings.tension;
  138. }
  139. },
  140. draw: function() {
  141. var x = this.nodes[0].x,
  142. y = this.nodes[0].y,
  143. a, b;
  144. ctx.beginPath();
  145. ctx.moveTo(x, y);
  146. for(var i = 1, n = this.nodes.length - 2; i < n; i++) {
  147. a = this.nodes[i];
  148. b = this.nodes[i + 1];
  149. x = (a.x + b.x) * 0.5;
  150. y = (a.y + b.y) * 0.5;
  151. ctx.quadraticCurveTo(a.x, a.y, x, y);
  152. }
  153. a = this.nodes[i];
  154. b = this.nodes[i + 1];
  155. ctx.quadraticCurveTo(a.x, a.y, b.x, b.y);
  156. ctx.stroke();
  157. ctx.closePath();
  158. }
  159. };
  160. })();
  161. // ----------------------------------------------------------------------------------------
  162. function init(event) {
  163. document.removeEventListener('mousemove', init);
  164. document.removeEventListener('touchstart', init);
  165. document.addEventListener('mousemove', mousemove);
  166. document.addEventListener('touchmove', mousemove);
  167. document.addEventListener('touchstart', touchstart);
  168. mousemove(event);
  169. reset();
  170. loop();
  171. }
  172. function reset() {
  173. tendrils = [];
  174. for(var i = 0; i < settings.trails; i++) {
  175. tendrils.push(new Tendril({
  176. spring: 0.45 + 0.025 * (i / settings.trails)
  177. }));
  178. }
  179. }
  180. function loop() {
  181. if(!ctx.running) return;
  182. ctx.globalCompositeOperation = 'source-over';
  183. ctx.fillStyle = 'rgba(8,5,16,0.4)';
  184. ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
  185. ctx.globalCompositeOperation = 'lighter';
  186. ctx.strokeStyle = 'hsla(' + Math.round(hue.update()) + ',90%,50%,0.25)';
  187. ctx.lineWidth = 1;
  188. if(ctx.frame % 60 == 0) {
  189. console.log(hue.update(), Math.round(hue.update()), hue.phase, hue.offset, hue.frequency, hue.amplitude);
  190. }
  191. for(var i = 0, tendril; i < settings.trails; i++) {
  192. tendril = tendrils[i];
  193. tendril.update();
  194. tendril.draw();
  195. }
  196. ctx.frame++;
  197. ctx.stats.update();
  198. requestAnimFrame(loop);
  199. }
  200. function resize() {
  201. ctx.canvas.width = window.innerWidth;
  202. ctx.canvas.height = window.innerHeight;
  203. }
  204. function start() {
  205. if(!ctx.running) {
  206. ctx.running = true;
  207. loop();
  208. }
  209. }
  210. function stop() {
  211. ctx.running = false;
  212. }
  213. function mousemove(event) {
  214. if(event.touches) {
  215. target.x = event.touches[0].pageX;
  216. target.y = event.touches[0].pageY;
  217. } else {
  218. target.x = event.clientX
  219. target.y = event.clientY;
  220. }
  221. event.preventDefault();
  222. }
  223. function touchstart(event) {
  224. if(event.touches.length == 1) {
  225. target.x = event.touches[0].pageX;
  226. target.y = event.touches[0].pageY;
  227. }
  228. }
  229. function keyup(event) {
  230. switch(event.keyCode) {
  231. case 32:
  232. save();
  233. break;
  234. default:
  235. // console.log(event.keyCode);
  236. }
  237. }
  238. function letters(id) {
  239. var el = document.getElementById(id),
  240. letters = el.innerHTML.replace('&amp;', '&').split(''),
  241. heading = '';
  242. for(var i = 0, n = letters.length, letter; i < n; i++) {
  243. letter = letters[i].replace('&', '&amp');
  244. heading += letter.trim() ? '<span class="letter-' + i + '">' + letter + '</span>' : '&nbsp;';
  245. }
  246. el.innerHTML = heading;
  247. setTimeout(function() {
  248. el.className = 'transition-in';
  249. }, (Math.random() * 500) + 500);
  250. }
  251. function save() {
  252. if(!buffer) {
  253. buffer = document.createElement('canvas');
  254. buffer.width = screen.availWidth;
  255. buffer.height = screen.availHeight;
  256. buffer.ctx = buffer.getContext('2d');
  257. form = document.createElement('form');
  258. form.method = 'post';
  259. form.input = document.createElement('input');
  260. form.input.type = 'hidden';
  261. form.input.name = 'data';
  262. form.appendChild(form.input);
  263. document.body.appendChild(form);
  264. }
  265. buffer.ctx.fillStyle = 'rgba(8,5,16)';
  266. buffer.ctx.fillRect(0, 0, buffer.width, buffer.height);
  267. buffer.ctx.drawImage(canvas,
  268. Math.round(buffer.width / 2 - canvas.width / 2),
  269. Math.round(buffer.height / 2 - canvas.height / 2)
  270. );
  271. buffer.ctx.drawImage(logo,
  272. Math.round(buffer.width / 2 - logo.width / 4),
  273. Math.round(buffer.height / 2 - logo.height / 4),
  274. logo.width / 2,
  275. logo.height / 2
  276. );
  277. window.open(buffer.toDataURL(), 'wallpaper', 'top=0,left=0,width=' + buffer.width + ',height=' + buffer.height);
  278. // form.input.value = buffer.toDataURL().substr(22);
  279. // form.submit();
  280. }
  281. window.requestAnimFrame = (function() {
  282. return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(fn) { window.setTimeout(fn, 1000 / 60) };
  283. })();
  284. window.onload = function() {
  285. ctx = document.getElementById('canvas').getContext('2d');
  286. ctx.stats = new Stats();
  287. ctx.running = true;
  288. ctx.frame = 1;
  289. logo = new Image();
  290. logo.src = 'http://labs.nikrowell.com/lightsandmotion/ultraviolet/images/logo.png';
  291. hue = new Oscillator({
  292. phase: Math.random() * Math.TWO_PI,
  293. amplitude: 85,
  294. frequency: 0.0015,
  295. offset: 285
  296. });
  297. letters('h1');
  298. letters('h2');
  299. document.addEventListener('mousemove', init);
  300. document.addEventListener('touchstart', init);
  301. document.body.addEventListener('orientationchange', resize);
  302. window.addEventListener('resize', resize);
  303. window.addEventListener('keyup', keyup);
  304. window.addEventListener('focus', start);
  305. window.addEventListener('blur', stop);
  306. resize();
  307. if(window.DEBUG) {
  308. var gui = new dat.GUI();
  309. // gui.add(settings, 'debug');
  310. settings.gui.add(settings, 'trails', 1, 30).onChange(reset);
  311. settings.gui.add(settings, 'size', 25, 75).onFinishChange(reset);
  312. settings.gui.add(settings, 'friction', 0.45, 0.55).onFinishChange(reset);
  313. settings.gui.add(settings, 'dampening', 0.01, 0.4).onFinishChange(reset);
  314. settings.gui.add(settings, 'tension', 0.95, 0.999).onFinishChange(reset);
  315. document.body.appendChild(ctx.stats.domElement);
  316. }
  317. };
  318. })(window);
  319. </script>
  320. <body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"></body>
  321. <script type="text/javascript">
  322. //form tags to omit in NS6+:
  323. var omitformtags=["input", "textarea", "select"]
  324. omitformtags=omitformtags.join("|")
  325. function disableselect(e){
  326. if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
  327. return false
  328. }
  329. function reEnable(){
  330. return true
  331. }
  332. if (typeof document.onselectstart!="undefined")
  333. document.onselectstart=new Function ("return false")
  334. else{
  335. document.onmousedown=disableselect
  336. document.onmouseup=reEnable
  337. }
  338. </script>
  339. <body onkeydown="return false">
  340. <body onselectstart="return false">
  341. </body>
  342. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement