I managed to get Facebook Connect working in my scene, "EndGameScene" which will allow the user to post their score when the game is over. Everything was working perfectly fine until I tried adding FBConnect to the options scene ("Options") as well (allowing the user to logout from that screen). Now, I'm getting this error:
duplicate symbol _session in /..../Options.o and /..../EndGameScene.o
This is how the code is laid out:
MenuScene.h
#import <UIKit/UIKit.h>
#import "cocos2d.h"
#import "FBConnect/FBConnect.h"
extern FBSession* session;
EndGameScene.mm
#import "EndGameScene.h"
#import "MenuScene.h"
#import "GameScene.h"
#import "cocoslive.h"
FBSession* session;
Options.mm
#import "Options.h"
#import "MenuScene.h"
FBSession* session;