开发者

FBSession.h, iPhone, Facebook SDK

开发者 https://www.devze.com 2023-01-27 01:54 出处:网络
Where is \"FBSession.h\" in the Facebook SDK downloaded from here: https://github.com/facebook/facebook-ios-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 downlo开发者_JAVA百科ad 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消