Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2013
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <title>Document</title>
  5. </head>
  6. <body>
  7. <div id="fb-root"></div>
  8. <script>
  9. window.fbAsyncInit = function() {
  10. FB.init({
  11. appId : 'xxxxxxx'
  12. status : true, // check login status
  13. cookie : true, // enable cookies to allow the server to access the session
  14. xfbml : true // parse XFBML
  15. });
  16.  
  17.  
  18. FB.Event.subscribe('auth.authResponseChange', function(response) {
  19. // Here we specify what we do with the response anytime this event occurs.
  20. if (response.status === 'connected') {
  21.  
  22. testAPI();
  23. } else if (response.status === 'not_authorized') {
  24.  
  25. FB.login(function(response) { if (response.authResponse) { }},{ scope: 'publish_actions, user_photos,photo_upload' });
  26. } else {
  27. FB.login(function(response) { if (response.authResponse) { }},{ scope: 'publish_actions, user_photos,photo_upload' });
  28. }});
  29.  
  30.  
  31. };
  32.  
  33.  
  34. // Load the SDK asynchronously
  35. (function(d){
  36. var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
  37. if (d.getElementById(id)) {return;}
  38. js = d.createElement('script'); js.id = id; js.async = true;
  39. js.src = "//connect.facebook.net/en_US/all.js";
  40. ref.parentNode.insertBefore(js, ref);
  41. }(document));
  42.  
  43. </script>
  44. <form action="bordel.php" method="POST" enctype="multipart/form-data">
  45.  
  46. Zadaj nazov albumu(required pre FB):
  47. <input type="text" name="album_name" />
  48. <br>
  49. Zadajte opis albumu (optional) :
  50. <input type="text" name="album_description" />
  51. <br>
  52. <input type="file" name="file[]" multiple />
  53. <br>
  54. <input type="submit" name="formsubmit" value="Send files" />
  55. Export to FB:
  56. <input type="checkbox" name="fbcheckbox" value="value1" onClick="FB.login(function(response) { if (response.authResponse) { }},{ scope: 'publish_actions, user_photos,photo_upload' });">
  57. </form>
  58. </body>
  59. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement