ccsoft / cordova-facebook

Cordova plugin that handles Facebook integration in mobile apps.
Apache License 2.0
87 stars 43 forks source link

plugin.graphCall "me/picture" results in a crash of my app on iOS #62

Closed mal3k closed 9 years ago

mal3k commented 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

koraybalci commented 9 years ago

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.