开发者

How to gey Sessionkey from new FaceBook SDK in iphone

开发者 https://www.devze.com 2023-02-02 05:48 出处:网络
Can any one help me in this: I used new FaceBook SDK, and there is no Session seen any where. How can we get Session key after logging in to Facebook.

Can any one help me in this:

I used new FaceBook SDK, and there is no Session seen any where. How can we get Session key after logging in to Facebook.

Im using '- (void)fb开发者_高级运维DidLogin;' method after login to facebook.

Thanks in advance


Assuming you are using the Facebook connect api. You'd have to create a FBSession object and initialize in either initWithNibName or ViewDidLoad. This object automatically gets populated with the session key once the user has been authenticated.

    FBSession *session = [[FBSession sessionForApplication:@"bla bla" secret:@"bla bla" 
                    delegate:self]retain];
0

精彩评论

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