Facebook sign in error when not logged into Facebook


(Amanda Collins) #1

In the popup window the following error shows. any idea how to fix this?

screenshot: https://snag.gy/tClvdz.jpg


(Jay Pfaffman) #2

Here’s what I get. Looks like you’ve not communicated to Facebook the URL of your site.


(Amanda Collins) #3

Thanks I thought for sure I’d already done all of that and tested it. But I haven’t really touched the site in a couple months.
Ill look into that thanks again. :slight_smile:


(Amanda Collins) #4

Something still isnt working I cant see what though?

LOGS:

(facebook) Authentication failure! invalid_credentials: OAuth2::Error, : {"access_token":"EAASU6bXBgtcBAEnpOS6J0ymtUHf7Y9OrT5UXCX4O49cLHNKJAYo6e9v0jOgrnItmgeUPyULSj4HFNiGTpU7aZAlzFZCJpIk7GqywPRWOrk5m
hostname	ip-172-31-18-54-app
process_id	13702
application_version	dd1cc23caf8de1aeba0fc9414aabc2f762dd6749
HTTP_HOST	wakspiddlevak.com
REQUEST_URI	/auth/facebook/callback?code=AQC7e3o4NsWEXE2iyTaEx91NFPpimoTte8TrUM8HDhWliU-bqu02_VsagGP-9b9zpv9k_BH3C_snS9rrxHnhDk38d5nRkHxvh3t4SiooZ0f0TXPGG-9WQbSIxbeTozYhG94zyhxws0BV9eIif9LqHiuGHDSOipmqK0p_uwDBVx7aZKNJZuZWN0zyXcvwYsfpTSlJBRdAANHmE97l1lYbafkQ-YyRYCyct3lVDRet8uYu2tWH6TOtUapNIO_Axm1k3SmqZA-7j-oxTl0k753CCEeAAGgbaXDzaO5P18bFSwFEDBSCWq2QGGN3c-qILDzWDJSNIrWrjZokYuX6gGz1BZ0tgSE8UXoLQ_tXbLJCmFclMw&state=fad2bba6af26f0ead22bdba22913537eb734e6521b27833a
REQUEST_METHOD	GET
HTTP_USER_AGENT	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
HTTP_ACCEPT	text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER	https://www.facebook.com/
HTTP_X_FORWARDED_FOR	107.5.236.197
HTTP_X_REAL_IP	107.5.236.197
params	
code	AQC7e3o4NsWEXE2iyTaEx91NFPpimoTte8TrUM8HDhWliU-bqu02_VsagGP-9b9zpv9k_BH3C_snS9rrxHnhDk38d5nRkHxvh3t4S
state	fad2bba6af26f0ead22bdba22913537eb734e6521b27833a

(Amanda Collins) #5

Actually I should mention doesnt matter if Im logged into facebook or not


(Rafael dos Santos Silva) #6

This was broken and was fixed minutes ago, please update your Discourse.


(Amanda Collins) #7

Thanks Ill check it again in a few :+1:


(Amanda Collins) #8

Still not working for me.

LOGS:

Message (2 copies reported)

(facebook) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected
Backtrace

/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/logster-1.2.7/lib/logster/logger.rb:93:in `add_with_opts'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/logster-1.2.7/lib/logster/logger.rb:50:in `add'
/usr/local/lib/ruby/2.3.0/logger.rb:507:in `error'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:158:in `log'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:474:in `fail!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.3.1/lib/omniauth/strategies/oauth2.rb:75:in `callback_phase'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-facebook-3.0.0/lib/omniauth/strategies/facebook.rb:71:in `block in callback_phase'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-facebook-3.0.0/lib/omniauth/strategies/facebook.rb:135:in `with_authorization_code!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-facebook-3.0.0/lib/omniauth/strategies/facebook.rb:70:in `callback_phase'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:227:in `callback_call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:184:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/builder.rb:63:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/conditionalget.rb:25:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'
/var/www/discourse/lib/middleware/anonymous_cache.rb:136:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/session/abstract/id.rb:225:in `context'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/session/abstract/id.rb:220:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/query_cache.rb:36:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/logster-1.2.7/lib/logster/middleware/reporter.rb:31:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:38:in `call_app'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:22:in `call'
/var/www/discourse/config/initializers/100-quiet_logger.rb:17:in `call_with_quiet_assets'
/var/www/discourse/config/initializers/100-silence_logger.rb:29:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/methodoverride.rb:22:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/runtime.rb:18:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/sendfile.rb:113:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/lib/mini_profiler/profiler.rb:171:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-2.0.2/lib/message_bus/rack/middleware.rb:62:in `call'
/var/www/discourse/lib/middleware/request_tracker.rb:73:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:518:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:165:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/urlmap.rb:66:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/urlmap.rb:50:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/urlmap.rb:50:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:562:in `process_client'
/var/www/discourse/lib/scheduler/defer.rb:85:in `process_client'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:658:in `worker_loop'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:132:in `start'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.2.0/bin/unicorn:126:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.3.0/bin/unicorn:22:in `load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/bin/unicorn:22:in `<main>'
Env

hostname	ip-172-31-18-54-app
process_id	13702
application_version	dd1cc23caf8de1aeba0fc9414aabc2f762dd6749
HTTP_HOST	wakspiddlevak.com
REQUEST_URI	[/auth/facebook/callback?code=AQCJ7CbqLEG-eh6MHmVeK5uk-SBPqxnJk4LC7xOCzv-jLWL3XR1T5W2AjGZfXsPa_F0e9wmo07ZNhyShALbzAVWonBM42gJkmJYS_6nv0CbZZq4_a_WRghzLqUhboW5rXAPZZba5phtX4rus4sjN5evycGGHVuxhsxNDExK0ZTe0ipy8gKQ3NI-khmGORW7p_8LjJYhDir00MOIO587fW_BZMKTkNAaAOpz32kdQRPWpal0t6El6XFsUMeWf7kzAJk4GUyW-IxMI5lQTfYhoWOUkHyBX0kwjacNYKxo5atDpkqhVYKNjBoZv8zHR-hJU_QboGjPFRdWzm9ggvV7p85niQ9i7MTNBl4jjSLIVyx3tXA&state=68d5b9a9f5759b8a717dbb14c7b827534802080984f71d3f, /auth/facebook/callback?code=AQAtUbb1z84sZXEEGFL4rM3WJfMbYNouw-eaRZCz8Fym540wNJMB8yL0q5F7l3KE-8aA8cnq4fnB74mQVCSZQ-z2NTYk0ELa3FNkv9Wu1HFu78jUaJJFNKaNJEZTKzwchufQgVPFMmXTpl1livB_CfWqI8IqYbSVzVnfPZj_0CbEbF_Y-ZgikxGE4GYvQhVjEUY_UX8-NY9Pyna-bkNw5YO9MYL6bcqOMTgMWt8k0dkV7PSbdOJr1xXnM9-04uwF7nky90XxhPtCn4DMhiFq9qxbWtpxWmAtjLqw0pNITBZBndzFQd9QSxnQ8PZO-DVT0B9Itk9vu2qTE36WE590BnP5ky-MIgHwflK1TesylRr7uw&state=ed5a213e3ea8d528d246a0da088b6cff058bdfd73fd2942b]
REQUEST_METHOD	GET
HTTP_USER_AGENT	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
HTTP_ACCEPT	text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER	https://www.facebook.com/
HTTP_X_FORWARDED_FOR	107.5.236.197
HTTP_X_REAL_IP	107.5.236.197
params	
code	[AQCJ7CbqLEG-eh6MHmVeK5uk-SBPqxnJk4LC7xOCzv-jLWL3XR1T5W2AjGZfXsPa_F0e9wmo07ZNhyShALbzAVWonBM42gJkmJYS_, AQAtUbb1z84sZXEEGFL4rM3WJfMbYNouw-eaRZCz8Fym540wNJMB8yL0q5F7l3KE-8aA8cnq4fnB74mQVCSZQ-z2NTYk0ELa3FNkv]
state	[68d5b9a9f5759b8a717dbb14c7b827534802080984f71d3f, ed5a213e3ea8d528d246a0da088b6cff058bdfd73fd2942b]

(Jeff Atwood) #9

No repro works here on meta. Check your version by viewing source.


(Amanda Collins) #10

Sorry I have no idea what you mean.


(Joshua Rosenfeld) #11

Jeff means that the fix Robin made ~five hours ago solved the issue here on Meta, so he wants you to check the version of Discourse you are running to ensure you have the fix. To do that, right click on any blank space on your site, and click view page source. If it is not 28da0549b6ef649f66c4287ec10e37d9accb49d8 you aren’t running the latest build and need to update your site for the fix to apply.


(Amanda Collins) #12

Thank you. Its updated to the latest version. Twitter,yahoo,gitgub, and google sign up are all working btw.

This is the version I have apparently:
Discourse 1.8.0.beta8
GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. version dd1cc23caf8de1aeba0fc9414aabc2f762dd6749">