Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible to create a singleton c++ to authenticate and post in the wall using HTTP request to Facebook API?

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

like image 897
vgonisanz Avatar asked Nov 28 '25 08:11

vgonisanz


1 Answers

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

like image 144
MikelEiza Avatar answered Nov 30 '25 21:11

MikelEiza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!