diff --git a/demo/clientside.hs b/demo/clientside.hs
--- a/demo/clientside.hs
+++ b/demo/clientside.hs
@@ -27,7 +27,7 @@
 
 
 instance Yesod Test where
-  approot = FIXME -- FIXME: Put your approot here
+  approot = ApprootStatic "http://dev.whonodes.org:3000"
 
 instance RenderMessage Test FormMessage where
   renderMessage _ _ = englishFormMessage
diff --git a/src/Yesod/Auth/Facebook/ClientSide.hs b/src/Yesod/Auth/Facebook/ClientSide.hs
--- a/src/Yesod/Auth/Facebook/ClientSide.hs
+++ b/src/Yesod/Auth/Facebook/ClientSide.hs
@@ -507,8 +507,9 @@
                 <*> parsed A..:? "user_id"
                 <*> parsed A..:? "oauth_token"
                 <*> parsed A..:? "expires") of
-      Right (Just code, _, _, _) -> do
+      Right (Just codeT, _, _, _) -> do
         -- We have to exchange the code for the access token.
+        let code = TE.encodeUtf8 codeT
         moldCode <- lift $ lookupSessionBS sessionCode
         case moldCode of
           Just code' | code == code' -> lift $ do
diff --git a/yesod-auth-fb.cabal b/yesod-auth-fb.cabal
--- a/yesod-auth-fb.cabal
+++ b/yesod-auth-fb.cabal
@@ -1,5 +1,5 @@
 Name:                yesod-auth-fb
-Version:             1.6
+Version:             1.6.1
 Synopsis:            Authentication backend for Yesod using Facebook.
 Homepage:            https://github.com/meteficha/yesod-auth-fb
 License:             BSD3
@@ -48,13 +48,13 @@
                  , shakespeare-js >= 1.0.2
                  , wai
                  , http-conduit >= 1.9
-                 , text         >= 0.7     && < 0.12
+                 , text         >= 0.7     && < 1.2
                  , transformers >= 0.1.3   && < 0.4
                  , yesod-fb     == 0.3.*
-                 , fb           == 0.14.*
+                 , fb           >= 0.14    && < 0.16
                  , conduit      == 1.0.*
                  , bytestring   >= 0.9     && < 0.11
-                 , aeson        == 0.6.*
+                 , aeson        >= 0.6
                  , time         >= 1.0     && < 1.5
 
   Exposed-modules: Yesod.Auth.Facebook
