简体   繁体   中英

how can I sign in from my iphone app to facebook account?

我想使用我的应用程序登录Facebook,那么我该如何编码?

Facebook provide an iOS SDK that gives you the ability to sign into Facebook and methods for accessing the GraphAPI.

Check here for information - http://developers.facebook.com/blog/post/400

Facebook iOS SDK is available here .

You will have to

  • Download the SDK, and install it
  • Create a Facebook App in your Facebook developer console, and get a Facebook app id.
  • In your Xcode project add the Facebook SDK framework files.
  • Add the Facebook app id in your projects Info.plist file, and start coding.

You could get more information here .

Edit : From iOS6 onwards, Apple has a new framework to post into Facebook. It is called Social Framework, and you could find information about it here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM