Permalink
Browse files

Fix sample app again moving scripts to bottom and referencing proper …

…FB JS SDK
  • Loading branch information...
1 parent c67c644 commit 62de0a1086fd9f688ba93accd80f1d31524558a5 Dave Johnson committed Jun 13, 2011
Showing with 19 additions and 15 deletions.
  1. +19 −15 www/index.html
View
@@ -1,8 +1,24 @@
<html>
- <head>
+ <head></head>
+ <body>
+ <button onclick="init()">Init</button>
+ <button onclick="login()">Login</button>
+ <button onclick="me()">Me</button>
+ <button onclick="getSession()">Get session</button>
+ <button onclick="getLoginStatus()">Get login</button>
+ <button onclick="logout()">Logout</button>
+
+ <!-- TODO: have this written dynamically in init if phonegap -->
+ <div id="fb-root"></div>
+
+ <!-- phonegap -->
<script src="phonegap.0.9.5.js"></script>
+ <!-- phonegap facebook plugin -->
+ <script src="facebook-connect-0.0.1.js"></script>
+ <!-- weinre -->
<script src="http://debug.phonegap.com/target/target-script-min.js#foobook"></script>
- <script src="facebook.js"></script>
+ <!-- facebook js sdk -->
+ <script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.Event.subscribe('auth.login', function(response) {
alert('auth.login event');
@@ -61,18 +77,6 @@
document.addEventListener('deviceready', function() {
navigator.app.addService("com.facebook.phonegap.Connect", "com.facebook.phonegap.ConnectPlugin");
}, false);
-
- </script>
- </head>
- <body>
- <button onclick="init()">Init</button>
- <button onclick="login()">Login</button>
- <button onclick="me()">Me</button>
- <button onclick="getSession()">Get session</button>
- <button onclick="getLoginStatus()">Get login</button>
- <button onclick="logout()">Logout</button>
-
- <!-- TODO: have this written dynamically in init if phonegap -->
- <div id="fb-root"></div>
+ </script>
</body>
</html>

0 comments on commit 62de0a1

Please sign in to comment.