简体   繁体   English

FBSession.h,iPhone,Facebook SDK

[英]FBSession.h, iPhone, Facebook SDK

Where is "FBSession.h" in the Facebook SDK downloaded from here: https://github.com/facebook/facebook-ios-sdk ? 从此处下载的Facebook SDK中的“ FBSession.h”在哪里: 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. 我还按照http://developers.facebook.com/blog/post/213上的说明进行操作,并导入了FBConnect / FBConnect.h,但是我无法创建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 ). 他们建议您下载的代码无法再通过其提供的链接(即http://svn.facebook.com/svnroot/platform/clients/packages/fbconnect-iphone.zip )进行访问。

Thanks! 谢谢!

There is no FBSession.h on the current version of the SDK. 当前版本的SDK上没有FBSession.h。

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. 如果您下载了GitHub上的仓库,则在示例文件夹下有一个DemoApp,它将为您提供一个如何在应用程序中实现此功能的好主意。

Also plenty of details on how to get going on the README file https://github.com/facebook/facebook-ios-sdk/blob/master/README.mdown 还有很多有关如何继续使用README文件的详细信息https://github.com/facebook/facebook-ios-sdk/blob/master/README.mdown

Try using ShareKit . 尝试使用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 . 不推荐使用包含FBSession类的旧版Facebook SDK应改用新版 There's no FBSession any more, see the readme on GitHub. 不再有FBSession ,请参阅GitHub上的自述文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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