Permalink
Browse files

fix facebook OAuth2 access_token response parsing (forgot & separator…

… char
  • Loading branch information...
1 parent 5fe4483 commit a6ddd6abc2bdba14bc9ba6f0f9792492446f9e16 @SpeCT committed Jun 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 fb_auth.erl
View
@@ -223,7 +223,7 @@ process_facebook_access_token(Resp) ->
% Extract the info we need
case Resp of
{ok, {{_,200,_}, _, Body}} ->
- case string:tokens(Body, "=") of
+ case string:tokens(Body, "=&") of
["access_token", AccessToken] ->
?LOG_DEBUG("process_facebook_access_token: access_token=~p",[AccessToken]),
{ok, AccessToken};

0 comments on commit a6ddd6a

Please sign in to comment.