Where should i put keys given by facebook in FBConnect
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.
精彩评论