facebook integration problem in iPhone app

233 Views Asked by At

HI..

i want to implement facebook in my iphone game .. i want when game is over there is a facebook connect button .. using which a player can share his score on his wall in facebook .. i have follow the way which is describe in this video { http://vimeo.com/3616452 } but i am getting session not declare error .. so please help out

1

There are 1 best solutions below

5
On BEST ANSWER

This video is rather old. They use old facebook-iphone-sdk that is still working but Facebook recommend using new iOS SDK https://github.com/facebook/facebook-ios-sdk

It's a lot easier now. You can find sample project there and adopt it to you app.

I think you getting "session not declare" error because you didn't include facebook sdk header files in your project or Xcode couldn't find it if you SDK placed in another directory.

If you show us some code and better describe your problem it will be much easier to help you.