Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Test</title>
- <!--<link type="text/css" rel='stylesheet' href='1.css'/>
- <script src="jquery-2.0.3.min.js"></script>-->
- </head>
- <body>
- <script src="https://vk.com/js/api/openapi.js" type="text/javascript"></script>
- <div id="login_button" onclick="VK.Auth.login(authInfo);"></div>
- <script language="javascript">
- VK.init({
- apiId: 5785736
- });
- function authInfo(response) {
- if (response.session) {
- alert('user: '+response.session.mid);
- } else {
- alert('not auth');
- }
- }
- VK.Auth.getLoginStatus(authInfo);
- VK.UI.button('login_button');
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement