iphone + facebook, Data Store API - iphone

I'm doing a game that will connect to facebook
once conected the game uploads your score and shows you a table with the score of your friends.
I try to create an object to store data, but i couldn't do it.
then I read this on the Data Store API documentation:
Except for the User Preference API methods, all Data Store API methods have been disabled for desktop applications.
Is my game an desktop application?
if not, how can i do for store the points of the players in the facebook application?
I'm so sorry for mi english, I speak spanish.

If you want to store your game data, you have to create your own database and a webservice to connect your clients with that database. There's no way around it. But there're several helpful question on that topic on stackoverflow.
An alternative be would using online services like http://iphonelb.com/
Good Luck!

Related

How to extract data from a facebook game

Is it possible to extract data from an existing Facebook game such as Total Domination.
I want to get data such as how many troops I have etc into a spreadsheet automatically.
If it is possible, how can I do it, or where should I find out?
No, game information is not part of Facebook. It is stored on the game own server. The content of an app is private. Only the developer of the game decides how the data is displayed or shared.
The Facebook API only furnishes information about the app properties like name, description, icon, url, developers, etc.

iPhone App - Using and Storing Contact Photos Best Practice

I was wondering if anyone had any best practices or advice for using contact photos in an app. Essentially I'm building an app that mimics the given contact app except my app will provide the contacts and their photos - this is so the user doesn't have to add contacts etc.
I can get my app to read an XML file for the contact information though I may change this to the JSON stuff served from a web server - right now the XML is within the app for testing purposes and I have to read up on JSON. This XML file simply holds the contact information and I show a contact photo that's in the support files for testing purposes too.
What would be a good way to server contact photos? Any best practices or advice? Should I store photos on the users phones and just reference them?
Hi for that case use Lazyloading
checkout this LazyloadingSample

How do I store a user data for a FB application?

Say, I wrote a flash game for the Facebook and I want the user to be able to view his playing history (dates, points, highscores...). Do I necessarily have to build my own database for that? Are there any other options? I mean, ANY?
Facebook will provide some general statistics about your app (like the number of views), but if you want something as specific as points and high-score statistics, you will have to use your own database.
You could have your app publishing scores to Facebook, and also read them back from the API: https://developers.facebook.com/docs/scores/

Chat Board functionality in Iphone app

I'm looking for away to allow users of my app to chat with each other. Doesn't have to be almost realtime chat say like on an instant messenger. Also i don't want a forum where people write long posts and have topics.
So maybe a chat wall would be an accurate description.
Users would not be authenticated or anything.
Only 1 chat wall, no private messaging or any other functionality besides writing to the wall.
I have available to me a pretty basic hosting server where I can throw up some files, it has MySQL DB and php available to me. I dnt know Php, but is there maybe something that php could do to inject messages into the database and maybe it could return all the messages that were added to the database in the last say for sake of argument, a week.
Another method could be to setup a Twitter account and then have users posting to the twitter page and then reading back all the tweets and writing them to the chat wall in the app. It would seem this could be the simplest solution.
What do you guys think? Any ideas of how this could be handled?
Thanks
-Code
Simplest solution might be to create a simple PHP script that writes to a text or HTML file (Google for examples of that...http://tinyurl.com/6ajjt4r). That file could then be read by your app and either parsed or displayed in a UIWebView.

Facebook High Scores Server

I want to merge my High Scores with facebook.
In other words, I don't want to mantain my own score server but I would like to let make the dirt work to facebook.
So I want to publish new scores and retrieve them to display in my game.
Can I do it? What API can I use? Is it possible with REST?
EDIT: Many games in fb show global scores & friends score. How can I do it?
You could write data to fb with this: http://wiki.developers.facebook.com/index.php/Data_Store_API_documentation
However, i'd reccomend using a more stable mature platform like Google app engine. Facebook's API's have been extremely flaky lately, and when I was using the facebook datastore, I'd often find it to be slow and even worse, return inconsistent results.