Fork me on GitHub
#cljsrn
<
2017-09-06
>
wojciech05:09:05

Make sure you have error-handling everywhere. FB API fails in a lot of random and unexpected ways…

wojciech05:09:27

It's a mess even using their own SDK 😕

pesterhazy12:09:52

@wojciech you got me there - I have no error handling so far

pesterhazy12:09:14

although most of the server handling should be server side, rather than client side, right?

wojciech13:09:58

With their SDK the flow was: you ask the user to login through web/fb-application and once they did you'd get an access token or an error message what went wrong

wojciech13:09:17

However, many time instead I'd get a 500, or a 4xx with no error message

wojciech13:09:32

Even I think a 200, but wihtout a token

wojciech13:09:08

Once I got the token I'd send it to my server and it'd its own validations

wojciech13:09:24

I'm not sure how it fits into doing OAuth manually

pesterhazy15:09:50

@wojciech yeah I had a similar experience with the FB sdk

pesterhazy15:09:06

lots of login failures

pesterhazy15:09:30

I'm now using the OAuth "Web" flow, which delegates a lot of the work to the server