Firstly … what do you want to do with Facebook and Twitter?
If you can explain that, than maybe we can try to help you. I have integrated Twitter to my game that posts a Tweet on the games main Twitter Timeline with a mention using the player’s Twitter handle indicating they are joining a game or hosting a game. I used a restful call from the game to a restful web-service running off my Game Flow system to achieve this.