Ken
Ken

Reputation: 31161

FBSession.h, iPhone, Facebook SDK

Where is "FBSession.h" in the Facebook SDK downloaded from here: https://github.com/facebook/facebook-ios-sdk?

I've also followed the instructions from here http://developers.facebook.com/blog/post/213 and imported FBConnect/FBConnect.h but I can't create an instance of FBSession. Is this out of date now? The code they suggest you download can no longer be accessed from the link they give (namely http://svn.facebook.com/svnroot/platform/clients/packages/fbconnect-iphone.zip).

Thanks!

Upvotes: 0

Views: 5317

Answers (3)

zoul
zoul

Reputation: 104065

Is this out of date now?

Yes. The old Facebook SDK that contained the FBSession class is deprecated, you should use the new one instead. There’s no FBSession any more, see the readme on GitHub.

Upvotes: 1

Rog
Rog

Reputation: 18670

There is no FBSession.h on the current version of the SDK.

If you download the repo available on GitHub, under the sample folder there is a DemoApp that will give you a pretty good idea of how to implement this in your app.

Also plenty of details on how to get going on the README file https://github.com/facebook/facebook-ios-sdk/blob/master/README.mdown

Upvotes: 2

AYBABTU
AYBABTU

Reputation: 1026

Try using ShareKit. It is very easy to implement and also supports other social networks.

Upvotes: 1

Related Questions