Facebook Getting started

Hi,
I used the following link to test if Facebook SDK on my game (Android):
[[https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/]]
It works on a none cocos2dx android project (Activity inherits from Activity not Cocos2dxActivity).
When I try it on the a cocos2dx Activity, it crashes with the following erroron catlog:

E/cocos2d-x assert(860): /…/…/cocos2dx/platform/android/CCApplication.cpp function:sharedApplication line:60

I appreciate your help
Thanks