简体   繁体   中英

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!

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM