Developers Manual > SDK Integration > Facebook > Facebook API References in JavaScript > Facebook-destroyInstance

.destroyInstance()

Destroy the instance of plugin.FacebookAgent and release memory.

Example

1
2
var facebook = plugin.FacebookAgent.getInstance();
facebook.destroyInstance();

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.