jaychang0917 / SimpleAuth

A easy to use social authentication android library. (Facebook, Google, Twitter, Instagram)
224 stars 51 forks source link

Error for Facebook test User login #12

Closed enessenkg closed 6 years ago

enessenkg commented 6 years ago

I get error while I am testing your application with test user which I generate from facebook developer page.

Facebook returns json like {"id":"100579670833398","name":"test locati","email":"test_vpyefuk_locati@tfbnw.net"}

but library tries to get key link which is not included in response...

is this a bug or did I miss something?

jaychang0917 commented 6 years ago

What is the error message?

enessenkg commented 6 years ago

why did not you use optString to get value? like here

jaychang0917 commented 6 years ago

@enessenkg oh, i didn't know JSONObject has such useful method. Thanks reminding me:)

Do you mind to create a PR? or I will fix it tomorrow.