Anybody have any experience with this? It would be really helpful if my users could post their Dungeon Demon maps to Facebook for sharing with their friends. I'm not sure if this is the best way to do it but I'd also like some easy way to get Dungeon Demon images on to the cloud so that they can be viewed on a users iPad.
Facebooks api is relatively simple. I'd be surprised if there wasnt a bunch of C or C++ libraries for the API by now. If not, it should be simple enough to post using something like libcurl.
Given how often the FB API changes, I would strongly suggest creating a proxy web service / page to handle this request for you (unless you already are and just didn't mention it. ) Plus, with a proxy you should be able to take advantage of the G+ Game API when they finally publish it.. hth,
You could look at the code that Playground uses. developer.playfirst.com It doesn't have which library they use (I bet it's libcurl) and there's a lot of extra layers to get through, but it does have how the requests are structured. I think it uses the old REST API. You could also look at: http://code.google.com/p/libfacebookcpp/ http://code.google.com/p/facebook-cpp-graph-api/ Which use the new Graph API
The Facebook API allows you to upload but you need to know an AID (album ID) and UID (user ID). I would think the simplest way would be to upload the image to a space on your webserver and then fire up a standard sharing URL in the browser that points to the URL of the image you just uploaded.
Something like this : http://www.facebook.com/sharer/shar...ww.geomgame.com/screenshots/geom1_640x480.jpg
And if you wanted to share on twitter also : http://twitter.com/share?url=http://www.geomgame.com/screenshots/geom1_640x480.jpg&text=this is a test
Thanks Tim, for a niche market tool with a laundry list of items that I would like to add over time... this may really be the ticket.