Question : Cocos2d-x + facebook SDK ?

Hi all , I’m trying to use Facebook SDK on my Android games. Anyone done it well ?
I’ve try to add the facebook SDK project to my games project(cocos2d-x) but it failed,
any advice how to done this ?

thanks

best regards

Hi.

I don’t know facebook SDK, but I assume that it is for Android development so it’s a jar file which contains Java classes.

It means that you need to use JNI in order to integrate it with your cocos2d-x game.

Regards.


Please,

Hi.

Just to complement my answer: If this facebook SDK is for iPhone you should integrate it using appropriate techniques (that I don’t know because I don’t develop for iPhone).

Take in account that if your game is multi-platform (for instance, for iOS, Android and Bada) you should have facebook SDKs for all platforms (for instance, for iOS, Android and Bada) otherwise you won’t be able to have facebook features on all of them.

Regards.


Please,