jaliss/securesocial — Issue #34: Facebook login problems with securesocial
Author: mirk8xr
Created: 2012-02-14 17:14:11+00:00
State: open

I'm using "testapp", the application included in the samples-and-tests folder of the securesocial module. I add the follow configuration in the application.conf file:

#
# Facebook
#
securesocial.facebook.authorizationURL=https://graph.facebook.com/
oauth/authorize
securesocial.facebook.accessTokenURL=https://graph.facebook.com/oauth/
access_token
securesocial.facebook.clientid=my_client_id application
securesocial.facebook.secret=my_client_secret
securesocial.facebook.scope=my_email

My facebook application is set with this property:
App Domain: herokuapp.com/
Redirect site url: http://stark-waterfall-4890.herokuapp.com/

When I try to log with Facebook the result is : "There was an error while trying to log you in. Please try again." . With myopenid the the login works properly. My application is currently upload in heroku repository and you can test it here: http://stark-waterfall-4890.herokuapp.com/.

The heroku-logs shows the following information:
....
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,609 INFO ~ Registered Identity Provider: twitter
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,609 INFO ~ Registered Identity Provider: facebook
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,609 INFO ~ Registered Identity Provider: google
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,610 INFO ~ Registered Identity Provider: yahoo
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,610 INFO ~ Registered Identity Provider: foursquare
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,613 INFO ~ Registered Identity Provider: linkedin
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,613 INFO ~ Registered Identity Provider: wordpress
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,613 INFO ~ Registered Identity Provider: myopenid
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,613 INFO ~ Registered Identity Provider: userpass
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,614 INFO ~ Application 'testapp' is now started !
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,702 INFO ~ Listening for HTTP on port 54375 ...
2012-02-14T16:53:17+00:00 app[web.1]: 16:53:17,613 INFO ~ Using default user service
2012-02-14T16:53:32+00:00 app[web.1]: securesocial.provider.AuthenticationException
2012-02-14T16:53:32+00:00 app[web.1]: 16:53:32,069 ERROR ~ Error authenticating user
2012-02-14T16:53:32+00:00 app[web.1]: securesocial.provider.AuthenticationException
2012-02-14T16:53:35+00:00 app[web.1]: securesocial.provider.AuthenticationException
2012-02-14T16:53:35+00:00 app[web.1]: 16:53:35,424 ERROR ~ Error authenticating user
2012-02-14T16:53:35+00:00 app[web.1]: securesocial.provider.AuthenticationException
2012-02-14T16:54:24+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=35ms status=302 bytes=0
2012-02-14T16:54:24+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/login dyno=web.1 queue=0 wait=0ms service=31ms status=200 bytes=5330
2012-02-14T16:54:25+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/javascripts/jquery-1.5.2.min.js dyno=web.1 queue=0 wait=0ms service=21ms status=200 bytes=85925
2012-02-14T16:54:25+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/stylesheets/bootstrap-1.3.0/bootstrap.min.css dyno=web.1 queue=0 wait=0ms service=72ms status=200 bytes=45361
2012-02-14T16:54:25+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/twitter.png dyno=web.1 queue=0 wait=0ms service=16ms status=200 bytes=946
2012-02-14T16:54:25+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/facebook.png dyno=web.1 queue=0 wait=0ms service=44ms status=200 bytes=939
2012-02-14T16:54:25+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/google.png dyno=web.1 queue=0 wait=0ms service=47ms status=200 bytes=1474
2012-02-14T16:54:26+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/yahoo.png dyno=web.1 queue=0 wait=0ms service=20ms status=200 bytes=1390
2012-02-14T16:54:26+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/foursquare.png dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=2001
2012-02-14T16:54:26+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/linkedin.png dyno=web.1 queue=0 wait=0ms service=5ms status=200 bytes=1020
2012-02-14T16:54:26+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/wordpress.png dyno=web.1 queue=0 wait=0ms service=18ms status=200 bytes=1757
2012-02-14T16:54:26+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/public/images/providers/myopenid.png dyno=web.1 queue=0 wait=0ms service=18ms status=200 bytes=4117
2012-02-14T16:54:28+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=10ms status=404 bytes=313
2012-02-14T16:54:31+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/facebook dyno=web.1 queue=0 wait=0ms service=4ms status=302 bytes=0
2012-02-14T16:54:32+00:00 app[web.1]: securesocial.provider.AuthenticationException
2012-02-14T16:54:32+00:00 app[web.1]: 16:54:32,656 ERROR ~ Error authenticating user
2012-02-14T16:54:32+00:00 app[web.1]: securesocial.provider.AuthenticationException
2012-02-14T16:54:32+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/facebook dyno=web.1 queue=0 wait=0ms service=7ms status=302 bytes=0
2012-02-14T16:54:32+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/login dyno=web.1 queue=0 wait=0ms service=21ms status=200 bytes=5526
2012-02-14T16:54:33+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=6ms status=404 bytes=313
2012-02-14T16:55:14+00:00 app[web.1]: 16:55:14,268 INFO ~ Number of application's worked threads is 8
2012-02-14T16:55:14+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/ dyno=web.1 queue=0 wait=0ms service=437ms status=302 bytes=0
2012-02-14T16:55:24+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/myopenid dyno=web.1 queue=0 wait=0ms service=144ms status=302 bytes=0
2012-02-14T16:55:24+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=55ms status=200 bytes=1347
2012-02-14T16:55:24+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=6ms status=404 bytes=313
2012-02-14T16:55:27+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/logout dyno=web.1 queue=0 wait=0ms service=7ms status=302 bytes=0
2012-02-14T16:55:27+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/login dyno=web.1 queue=0 wait=0ms service=16ms status=200 bytes=5330
2012-02-14T16:55:27+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=7ms status=404 bytes=313
2012-02-14T16:55:32+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/ dyno=web.1 queue=0 wait=0ms service=70ms status=302 bytes=0
2012-02-14T16:55:35+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/auth/myopenid dyno=web.1 queue=0 wait=0ms service=646ms status=302 bytes=0
2012-02-14T16:55:35+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=10ms status=200 bytes=1347
2012-02-14T16:55:35+00:00 heroku[router]: GET stark-waterfall-4890.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=9ms status=404 bytes=313
...

Can anyone help me?
Thanks in advance!