开发者

Implementing Facebook into a Tab Bar Application Xcode Project

开发者 https://www.devze.com 2023-02-18 05:37 出处:网络
I am reading how to implement facebook into my iOS SDK from the facebook developer website: http://developers.facebook.com/docs/guides/mobile/#ios, but the setup is based on a view-based application.

I am reading how to implement facebook into my iOS SDK from the facebook developer website: http://developers.facebook.com/docs/guides/mobile/#ios, but the setup is based on a view-based application. First of all I tried their example using a View-Based application as well and after implementing their code, I debug and ran the project in iOS Simulator and it's giving me an error saying:

On debug under

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

Implementing Facebook into a Tab Bar Application Xcode Project

So I have no clue what's going on here, so I hope someone can help me with this error: 1 thing I might point out, I don't know if creating the instance variable 'Facebook' in the header Facebook *facebook should be the name of one of my UIVewController subclass, so I dont really know. In addition, should my facebook application run in a UIWebView in Interface Builder?

Also my project is based on a tab bar application. So on my 3rd Tab Bar item, I have like 3 buttons all opening a new view that each have a WebView, and one of my buttons are the facebook application that will open.

Please let 开发者_开发技巧me know if it's not clear, thanks again!


in header file

specify that <FBSessionDelegate>

before this you have to import the facebook.h

and then implement the required method for fbsessiondelegate protocol

0

精彩评论

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