开发者

Where should i put keys given by facebook in FBConnect

开发者 https://www.devze.com 2023-02-24 19:50 出处:网络
I want to use f开发者_开发知识库acebook api in my future iphone project.. I have got App id...App Secret...and api key from the facebook..

I want to use f开发者_开发知识库acebook api in my future iphone project..

I have got App id...App Secret...and api key from the facebook..

Now I want to use it in my FBConnect..

Where should I use this details in the fbConnect?


Use the appID to create the facebook object

_facebook = [[Facebook alloc] initWithAppId:kAppId];

decide what permissions you want to get

_permissions = [[NSArray arrayWithObjects: @"read_stream", @"offline_access",nil] retain];

and then login using

[_facebook authorize:_permissions delegate:self];

also dont forget to add the URL fb[appID] to the URL Types key in the info.plist file.

0

精彩评论

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