- Home /
Prime31 Social Networking error cs1061 and cs 1579
Hi guys, I've got prime31 GameCenter and AdMob installed in a game. When i install SocialNetworking i got this two errors:
Assets/Plugins/GameCenter/GameCenterAchievement.cs(21,33): error CS1061: Type string' does not contain a definition for
arrayListFromJson' and no extension method arrayListFromJson' of type
string' could be found (are you missing a using directive or an assembly reference?)
Assets/Plugins/GameCenter/GameCenterAchievement.cs(24,17): error CS1579: foreach statement cannot operate on variables of type object' because it does not contain a definition for
GetEnumerator' or is not accessible
I dont use GameCenter Achievements, i just post on the default GameCenter HighScore. also im using the plugins that are downloaded on april 2012, and not the newest one.
If you don't know the answer, post some other plugins that i can use for posting on Facebook and Twiter for a crossplatform iOS and Android.
Who answers first gets a bear :)
You can make a custom plugin for android using JAR and JNI its not that tough. Download Facebook android sdk and make a static function which takes parameters and does all the functionality of login and posting according to parameters. Call this function from .cs or .js file using JNI. Refer this.
For iOS its much more easier than JNI. Download facebook iOS sdk. Declare a function in .mm file using XCode. Refer this.