Search code examples
iphoneobjective-ctwittergeotaggingmgtwitterengine

How to discover whether Geo-tagging is enabled with Twitter / MGTwitterEngine?


Using Matt Gemmell's MGTwitterEngine, how would I find out if the user (that i'm logged in as) has geo tagging enabled? According to the Twitter API, there is a 'geo_enabled' boolean flag, but I can't work out how to interrogate it using MGTwitterEngine. http://apiwiki.twitter.com/Geotagging-API-Best-Practice


Solution

  • You can do getUserInformationFor: on the current user and check if string for key "geo_enabled" is equal to string "true", as in [[userInfo objectForKey:@"geo_enabled"] isEqualToString:@"true"];