iPhone - Using json framework and facebook framework at a time - help
I'm working on iphone application. I downloaded json framework class from the URL JSON
I downloaded Facebook framework from git git://github.com/facebook/facebook-ios-sdk.git
afte开发者_开发技巧r downloading I found that facebook also uses JSON code inside "src" folder. But I found that JSON that I downloaded is different from the JSON in facebook.
Which JSON code do I've to use? how can I reuse the JSON code from FB framework itself?
as long as you're passing facebook a valid JSON string, it shouldn't matter what json encoding framework you use. Last time I implemented facebook connect, I believe they were just using the json framework (http://code.google.com/p/json-framework/). i'm sure they pulled a snapshot at the time of release and it's likely been updated...it should be a quick test for you to confirm.
Using Satyam's suggestion I removed the JSON code that comes with Facebook SDK, copying the extra code into out json-frameowrk files.
There are a lot of changes, but it seems(not tested thoroughly) to be working. Here is a link to the updated files I am using if it can be helpful.
http://dl.dropbox.com/u/29449508/JSON%2BFB.zip
精彩评论