Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FacebookProvider to get access_token from json body rather tha… #50

Merged
merged 3 commits into from
Apr 3, 2017

Conversation

undrewb
Copy link
Contributor

@undrewb undrewb commented Apr 3, 2017

Update FacebookProvider to get access_token from json body rather than query parameter. The query parameter no longer exists.

@ricsirigu
Copy link

Awesome, thank you @undrewb


} catch {
case unknown : Throwable => {
println("Something went wrong with the access_token" + unknown)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger.error would be better here

validToken = validateToken(accessToken)

} catch {
case unknown : Throwable => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's better to use NonFatal http://www.scala-lang.org/api/2.9.3/scala/util/control/NonFatal$.html

instead of Throwable, because Throwable also includes things like out of memory errors which you don't want to really catch

@ghostm
Copy link
Owner

ghostm commented Apr 3, 2017

Will merge after you address comments from @fmpwizard :)

Copy link
Contributor

@fmpwizard fmpwizard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

@ghostm ghostm merged commit 147f686 into ghostm:master Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants