开发者

Global facebook instance in iphone app [closed]

开发者 https://www.devze.com 2023-03-31 09:44 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vag开发者_开发知识库ue, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current for
It's difficult to tell what is being asked here. This question is ambiguous, vag开发者_开发知识库ue, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago.

I would like to have my app log users into facebook in a settings view and then save the information into userdefaults. When the app loads, it should log into facebook if the information is in userdefaults, and if not, continue operating normally without facebook functionality. Basically, I want one instance of facebook which is loaded at the beginning, and all the information used throughout every view in the app.

Is this possible?

Everything that I have seen so far shows one instance per view which is not what I want.


We do it all the time in our apps.

I typically create a Facebook singleton to manage the Facebook interaction and store the token in either NSUserDefaults or the Keychain, depending on the application.

0

精彩评论

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