Closed mal3k closed 9 years ago
That works like a charm on Android, but when I test on iOS, my app crashes with the following stack:
[__NSCFNumber length]: unrecognized selector sent to instance 0x1462d8f0
Facebook SDK version installed is 3.20.0
Here is my code (works just fine on Android):
var plugin = new CC.CordovaFacebook(); plugin.init(FB_API_KEY, 'MY_APP_NAME', ['public_profile', 'email','user_friends', 'publish_actions'], function() { plugin.graphCall("me/picture", {"redirect": false, "height": 120, "width": 120}, "GET", function(resp) { $('#profile-thumbnail').attr('src', resp.data.url); }); });
Why it's crashing on iOS ? Thanks
Can you put some console.logs around, before plugin.graphCall especially.
By the way, plugin hasn't been tested with SDK 3.20 as noted in readme.
That works like a charm on Android, but when I test on iOS, my app crashes with the following stack:
[__NSCFNumber length]: unrecognized selector sent to instance 0x1462d8f0
Facebook SDK version installed is 3.20.0
Here is my code (works just fine on Android):
var plugin = new CC.CordovaFacebook(); plugin.init(FB_API_KEY, 'MY_APP_NAME', ['public_profile', 'email','user_friends', 'publish_actions'], function() { plugin.graphCall("me/picture", {"redirect": false, "height": 120, "width": 120}, "GET", function(resp) { $('#profile-thumbnail').attr('src', resp.data.url); }); });
Why it's crashing on iOS ? Thanks