Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- </head>
- <body>
- <div id="fb-root"></div>
- <script>
- window.fbAsyncInit = function() {
- FB.init({
- appId : 'xxxxxxx'
- status : true, // check login status
- cookie : true, // enable cookies to allow the server to access the session
- xfbml : true // parse XFBML
- });
- FB.Event.subscribe('auth.authResponseChange', function(response) {
- // Here we specify what we do with the response anytime this event occurs.
- if (response.status === 'connected') {
- testAPI();
- } else if (response.status === 'not_authorized') {
- FB.login(function(response) { if (response.authResponse) { }},{ scope: 'publish_actions, user_photos,photo_upload' });
- } else {
- FB.login(function(response) { if (response.authResponse) { }},{ scope: 'publish_actions, user_photos,photo_upload' });
- }});
- };
- // Load the SDK asynchronously
- (function(d){
- var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
- if (d.getElementById(id)) {return;}
- js = d.createElement('script'); js.id = id; js.async = true;
- js.src = "//connect.facebook.net/en_US/all.js";
- ref.parentNode.insertBefore(js, ref);
- }(document));
- </script>
- <form action="bordel.php" method="POST" enctype="multipart/form-data">
- Zadaj nazov albumu(required pre FB):
- <input type="text" name="album_name" />
- <br>
- Zadajte opis albumu (optional) :
- <input type="text" name="album_description" />
- <br>
- <input type="file" name="file[]" multiple />
- <br>
- <input type="submit" name="formsubmit" value="Send files" />
- Export to FB:
- <input type="checkbox" name="fbcheckbox" value="value1" onClick="FB.login(function(response) { if (response.authResponse) { }},{ scope: 'publish_actions, user_photos,photo_upload' });">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement