I'm working on linux.
I have been looking for a method to post on Facebook from a c++ app (that runs in Android and Iphone using cocos2d-x). I have found some code in c++ to post on Facebook and Twitter, but it does not compile on linux. This or this.
In theory, I think, using http request, it could be easy to do, but i'm not sure.
The same question on cocosd2-x forum.
Some idea about this theory?
Is possible, but better use oficial libraries, added in THIS wiki
This is possible using curl. Here you are a LINK1 to compile it on cocos2d-x library, and a EXAMPLE2 using cocos2d-x.
LINK1: http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_compile_libcurl
EXAMPLE2: http://www.jesusbosch.com/2012/08/internet-communications-with-cocos2d-x.html