phonegap facebook plugin

烂漫一生 提交于 2019-12-06 10:36:40

This is caused by a bug in the FacebookConnect plugin following the Cordova 2.4.0 release (which uses NSJSONSerialization, and so returned objects are now immutable).

A pull request has been made on Github which contains the fixes: https://github.com/phonegap/phonegap-facebook-plugin/pull/251

In the meantime, you could manually make the following changes to FacebookConnectPlugin.m:

Replace line 284:

NSMutableDictionary *options = [[command.arguments lastObject] mutableCopy];

Add the following after line 310:

[options release];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!