distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Facebook Open-Graph crashes the app #261

Closed shamruk closed 9 years ago

shamruk commented 9 years ago

Hello, I am trying to use open-graph-story-with-api and the app crashes every time. Here is the log: http://pastie.org/9683701

koriner commented 9 years ago

Would you be able to show me the code you're using to trigger this? Also could you check the iOS device logs in XCode? That would be more useful than the crash report for debugging this one.

shamruk commented 9 years ago

Here is the log http://pastie.org/9684420 . It does look more useful: as I see missing image url could be a problem. I will check the image url tomorrow. Anyway that's a brutal way to handle null-pointer. Does Objective-C always collapse the app in such cases?

Oct 30 01:46:37 myya2 Clockmaker[908] : POSTING OPEN GRAPH STORY WITH API NO IMAGE Oct 30 01:46:37 myya2 Clockmaker[908] : * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: object cannot be nil (key: url)'

koriner commented 9 years ago

Yeah it looks like you might need to specify the URL for your post. But yes iOS is quite brutal in a lot of ways. We'll try to handle errors like this better in the upcoming version.