Closed fhackenb closed 6 years ago
Hi, Although I was not able to reproduce this error, I have made some changes to the code you referenced so it handles unexpected input better. Here is the relevant PR: https://github.com/NativeScript/nativescript-facebook/pull/124
Awesome, I copied the code into my node_modules and it fixed my issue! When do you think you'll publish this version?
nativescript-facebook@2.2.4 is now published in npm
Thanks!
I have a fully working facebook integration on iOS but am consistently getting an error on android.
After adding the appropriate key hash to my facebook dashboard, I am getting this error:
I traced the error to login-manager.android.js:
accessToken.expirationDate = convertToISOStringDate(sdkAccessToken.getExpires().toGMTString()); accessToken.refreshDate = convertToISOStringDate(sdkAccessToken.getLastRefresh().toGMTString());
When I do a console log on the sdkAccessToken and sdkAccessToken.getExpires() I get this:
The time in the console log seems to look good, so not sure why it's getting convertToISOStringDate method is causing this error. The code immediately preceding this error is:
Facebook.requestPublishPermissions(["manage_pages"], (error, fbData) => { ... })