Used to integrate the Facebook Platform with your iOS & tvOS apps.
Branch: master
Clone or download
Stan Wu and facebook-github-bot Only swizzle didMoveToWindow to have better performance
Summary: `didMoveToWindow` and `didMoveToSuperview` will both be triggered when a view is moved to screen, it's unnecessary to match twice. And there is no need to match when the window is nil, as matching views that not on screen is nonsense.

Reviewed By: YOUDAN

Differential Revision: D14123123

fbshipit-source-id: 8360345e5614755380889f898c78f048d7d50419
Latest commit a02dbb4 Feb 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Added CODEOWNERS file (#948) Feb 15, 2019
Carthage/Checkouts Remove Bolts Framework Jan 17, 2019
Configurations version bump v(4.40.0) Jan 15, 2019
FBSDKCoreKit Only swizzle didMoveToWindow to have better performance Feb 18, 2019
FBSDKIntegrationTests Modernized FBSDKIntegrationKit Jan 19, 2019
FBSDKLoginKit Conversion to Continuous Release (#949) Feb 16, 2019
FBSDKPlacesKit Conversion to Continuous Release (#949) Feb 16, 2019
FBSDKShareKit Conversion to Continuous Release (#949) Feb 16, 2019
FBSDKTVOSKit Conversion to Continuous Release (#949) Feb 16, 2019
FacebookSDK.xcworkspace Modernized FBSDKCoreKit Jan 18, 2019
FacebookSDKStrings.bundle/Resources Fix build issues with HelloTV Feb 4, 2019
samples Update sample projects Feb 12, 2019
scripts Conversion to Continuous Release (#949) Feb 16, 2019
.editorconfig Conversion to Continuous Release (#949) Feb 16, 2019
.gitattributes Facebook iOS SDK 4.9 Jan 13, 2016
.gitignore Conversion to Continuous Release (#949) Feb 16, 2019
.gitmodules Remove Bolts Framework Jan 17, 2019
.jazzy.yaml Conversion to Continuous Release (#949) Feb 16, 2019
.prettierrc.yml Conversion to Continuous Release (#949) Feb 16, 2019
.travis.yml Conversion to Continuous Release (#949) Feb 16, 2019
Brewfile Added Travis CI (#923) Nov 8, 2018
CHANGELOG.md Conversion to Continuous Release (#949) Feb 16, 2019
CODE_OF_CONDUCT.md Moved CONTRIBUTING.md to Root Oct 19, 2018
CONTRIBUTING.md Conversion to Continuous Release (#949) Feb 16, 2019
Cartfile.private Removed ios-snapshot-test-case Sep 25, 2018
Cartfile.resolved Remove Bolts Framework Jan 17, 2019
FBSDKCoreKit.podspec Remove Bolts Framework Jan 17, 2019
FBSDKLoginKit.podspec Remove Bolts Framework Jan 17, 2019
FBSDKMarketingKit.podspec version bump v(4.40.0) Jan 15, 2019
FBSDKPlacesKit.podspec Remove Bolts Framework Jan 17, 2019
FBSDKShareKit.podspec Modernized FBSDKShareKit Jan 18, 2019
FBSDKTVOSKit.podspec version bump v(4.40.0) Jan 15, 2019
FacebookSDK.podspec Remove Bolts Framework Jan 17, 2019
Gemfile Updated Release Scripts Jan 9, 2019
Gemfile.lock Updated Gemfile Deps Feb 14, 2019
LICENSE Facebook iOS SDK 4.0 Mar 25, 2015
NOTICE Facebook iOS SDK 4.34 Jun 18, 2018
README.md Resolved Bugs with Carthage Nov 26, 2018
README.txt Facebook iOS SDK 4.22 Apr 18, 2017
README_TV.txt Facebook iOS SDK 4.22 Apr 18, 2017
RELEASING.md Conversion to Continuous Release (#949) Feb 16, 2019

README.md

Facebook SDK for iOS

Build Status

This open-source library allows you to integrate Facebook into your iOS app.

Learn more about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more at https://developers.facebook.com/docs/ios

NOTE: By default, the Facebook SDK for iOS is installed in ~/Documents/FacebookSDK

TRY IT OUT

  1. Download the SDK at https://developers.facebook.com/docs/ios or via CocoaPods by adding the 'FBSDKCoreKit', 'FBSDKLoginKit', and 'FBSDKShareKit' pods.
  2. Test your install: build and run the project at ~/Documents/FacebookSDK/Samples/Scrumptious/Scrumptious.xcodeproj
  3. Check-out the tutorials available online at: https://developers.facebook.com/docs/ios/getting-started
  4. Start coding! Visit https://developers.facebook.com/docs/ios for tutorials and reference documentation.

FEATURES

GIVE FEEDBACK

Please report bugs or issues to https://developers.facebook.com/bugs/

You can also join the Facebook Developers Group on Facebook or ask questions on Stack Overflow

LICENSE

See the LICENSE file.

DEVELOPER TERMS

  • By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including information about people’s use of your app. Facebook will use information received in accordance with our Data Use Policy, including to provide you with insights about the effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on and off Facebook.
  • You may limit your sharing of information with us by updating the Insights control in the developer tool https://developers.facebook.com/apps/{app_id}/settings/advanced.
  • If you use a Facebook integration, including to share information with us, you agree and confirm that you have provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further agree that you will not share information with us about children under the age of 13.
  • You agree to comply with all applicable laws and regulations and also agree to our Terms https://www.facebook.com/policies/, including our Platform Policies https://developers.facebook.com/policy/.and Advertising Guidelines, as applicable https://www.facebook.com/ad_guidelines.php.

By using the Facebook SDK for iOS you agree to these terms.