Facebook login suddenly broken

Out of the blue I am not able to log in to my Meteor website via FB. I didn’t change any code and this is the error message I’m seeing:

W20170328-18:01:21.994(2) (oauth_server.js:398) Error in OAuth Server: Failed to complete OAuth handshake with Facebook. failed [400] {"err
or":{"message":"Error validating client secret.","type":"OAuthException","code":1,"fbtrace_id":"GVsuukn1ig\/"}}
I20170328-18:01:22.366(2)? Exception while invoking method 'login' Error: Failed to complete OAuth handshake with Facebook. failed [400] {"
error":{"message":"Error validating client secret.","type":"OAuthException","code":1,"fbtrace_id":"GVsuukn1ig\/"}}
I20170328-18:01:22.367(2)?     at getTokenResponse (packages/facebook/facebook_server.js:64:1)
I20170328-18:01:22.367(2)?     at Object.isJSON [as handleOauthRequest] (packages/facebook/facebook_server.js:8:1)
I20170328-18:01:22.367(2)?     at OAuth._requestHandlers.(anonymous function) (packages/oauth2/oauth2_server.js:8:1)
I20170328-18:01:22.367(2)?     at middleware (packages/oauth/oauth_server.js:173:1)
I20170328-18:01:22.367(2)?     at packages/oauth/oauth_server.js:146:1

I regenerated secrets, removed the facebook settings entry from my db, checked URI’s,… nothing seems to help. I even created a new FB app to start from scratch to see if it would work then.

Did anyone run into this problem? Could this be a bug or something with tokens?

I am on METEOR@1.3.5.1 and this a versions dump:

accounts-base@1.2.8
accounts-facebook@1.0.10
accounts-google@1.0.10
accounts-oauth@1.1.13
accounts-password@1.1.13
aldeed:autoform@5.8.1
aldeed:collection2@2.10.0
aldeed:collection2-core@1.2.0
aldeed:schema-deny@1.1.0
aldeed:schema-index@1.1.1
aldeed:simple-schema@1.5.3
allow-deny@1.0.5
arillo:flow-router-helpers@0.5.2
autoupdate@1.2.11
babel-compiler@6.8.5
babel-runtime@0.1.9_1
base64@1.0.9
binary-heap@1.0.9
blaze@2.1.8
blaze-html-templates@1.0.4
blaze-tools@1.0.9
boilerplate-generator@1.0.9
caching-compiler@1.0.6
caching-html-compiler@1.0.6
callback-hook@1.0.9
check@1.2.3
cmather:handlebars-server@2.0.0
coffeescript@1.1.4
dburles:collection-helpers@1.0.4
ddp@1.2.5
ddp-client@1.2.9
ddp-common@1.2.6
ddp-rate-limiter@1.0.5
ddp-server@1.2.10
deps@1.0.12
dferber:prerender@2.2.2_3
diff-sequence@1.0.6
ecmascript@0.4.8
ecmascript-runtime@0.2.12
edgee:slingshot@0.7.1
ejson@1.0.12
email@1.0.16
es5-shim@4.5.13
fabienb4:autoform-semantic-ui@0.9.3
facebook@1.2.8
fastclick@1.0.12
flemay:less-autoprefixer@1.2.0
geojson-utils@1.0.9
gfk:mailgun-api@1.1.0
google@1.1.13
handlebars@1.0.7
hot-code-push@1.0.4
html-tools@1.0.10
htmljs@1.0.10
http@1.1.8
id-map@1.0.8
jquery@1.11.9
juliancwirko:s-alert@3.2.0
juliancwirko:s-alert-scale@3.1.3
kadira:blaze-layout@2.3.0
kadira:flow-router@2.12.1
launch-screen@1.0.12
lepozepo:accounting@1.0.0
livedata@1.0.18
localstorage@1.0.11
logging@1.0.14
matb33:collection-hooks@0.8.4
mdg:seo@1.1.0
mdg:validation-error@0.2.0
meteor@1.1.16
meteor-base@1.0.4
meteorhacks:picker@1.0.3
meteorhacks:subs-manager@1.6.4
minifier-css@1.1.13
minifier-js@1.1.13
minimongo@1.0.17
mizzao:timesync@0.4.0
mobile-experience@1.0.4
mobile-status-bar@1.0.12
modules@0.6.5
modules-runtime@0.6.5
momentjs:moment@2.18.1
mongo@1.1.9_1
mongo-id@1.0.5
npm-bcrypt@0.8.6_3
npm-mongo@1.4.45
oauth@1.1.11
oauth2@1.1.10
observe-sequence@1.0.12
okgrow:analytics@2.1.3
ordered-dict@1.0.8
percolate:migrations@0.9.8
percolate:synced-cron@1.3.0
promise@0.7.3
raix:eventemitter@0.1.3
random@1.0.10
rate-limit@1.0.5
reactive-dict@1.1.8
reactive-var@1.0.10
reload@1.1.10
retry@1.0.8
routepolicy@1.0.11
semantic:ui@2.1.8
semantic:ui-data@2.1.8
service-configuration@1.0.10
session@1.1.6
sewdn:masked-input@1.0.6
sha@1.0.8
softwarerero:accounts-t9n@1.3.9
spacebars@1.0.12
spacebars-compiler@1.0.12
srp@1.0.9
standard-minifier-css@1.0.8
standard-minifier-js@1.0.8
templating@1.1.14
templating-tools@1.0.4
tracker@1.0.15
ui@1.0.11
underscore@1.0.9
url@1.0.10
useraccounts:core@1.14.2
useraccounts:flow-routing@1.14.2
useraccounts:semantic-ui@1.14.2
verso:intercom@1.5.0
webapp@1.2.11
webapp-hashing@1.0.9
zimme:active-route@2.3.2
zimme:collection-behaviours@1.1.3
zimme:collection-softremovable@1.0.5
zimme:collection-timestampable@1.0.9

Thanks in advance for your help and time.

2 Likes

yes, we’re seeing the same thing. FB deprecated an older version of their OAuth API, on which we were relying. we’re on Meteor v1.4.1.1.

we did a patch upgrade to v1.4.1.3, which fixed FB, but broke some of our Twitter functionality. i have an issue here:

as a workaround, i applied this to production:

which was mentioned in this existing thread:

https://forums.meteor.com/t/facebook-accounts-is-dead

4 Likes

Thanks @zimv20 for the quick reply! Will apply the workaround too.

@rova did you solved your issue? I also have the same problem with my fb login.

yes I did by installing this: https://github.com/fede-rodes/facebook-accounts-patched from @zimv20

1 Like

fwiw, we updated our dev fully to Meteor v1.4.3.2 and the FB functionality is working.

Thanks!!! You saved the day!