Permalink
Browse files

Facebook iOS SDK 3.8

Summary:
     see https://developers.facebook.com/ios/change-log-3.x/

    Upgrading from 3.7
     https://developers.facebook.com/docs/ios/upgrading-from-3.7-to-3.8/

Reviewed By: chrisp

Test Plan: Release Testing.
  • Loading branch information...
1 parent 99af010 commit 41f9a1895e38f145d1868b23e35411e443c4a12e @onebit onebit committed Sep 19, 2013
Showing with 5,546 additions and 2,523 deletions.
  1. +2 −0 samples/FriendPickerSample/FriendPickerSample.xcodeproj/project.pbxproj
  2. +16 −7 samples/FriendPickerSample/FriendPickerSample/FPAppDelegate.m
  3. +2 −0 samples/GraphApiSample/GraphApiSample.xcodeproj/project.pbxproj
  4. +2 −0 samples/HelloFacebookSample/HelloFacebookSample.xcodeproj/project.pbxproj
  5. +9 −0 samples/HelloFacebookSample/HelloFacebookSample/HFViewController.m
  6. +58 −62 samples/HelloFacebookSample/HelloFacebookSample/en.lproj/HFViewController_iPad.xib
  7. +63 −151 samples/HelloFacebookSample/HelloFacebookSample/en.lproj/HFViewController_iPhone.xib
  8. +2 −0 samples/PlacePickerSample/PlacePickerSample.xcodeproj/project.pbxproj
  9. +5 −4 samples/PlacePickerSample/PlacePickerSample/PPAppDelegate.m
  10. +62 −31 samples/PlacePickerSample/PlacePickerSample/en.lproj/PPViewController_iPad.xib
  11. +43 −66 samples/PlacePickerSample/PlacePickerSample/en.lproj/PPViewController_iPhone.xib
  12. +2 −0 samples/ProfilePictureSample/ProfilePictureSample.xcodeproj/project.pbxproj
  13. +1 −3 samples/ProfilePictureSample/ProfilePictureSample/PPAppDelegate.m
  14. +11 −0 samples/ProfilePictureSample/ProfilePictureSample/ProfilePictureSample-Info.plist
  15. +196 −118 samples/ProfilePictureSample/ProfilePictureSample/en.lproj/PPViewController_iPad.xib
  16. +96 −116 samples/ProfilePictureSample/ProfilePictureSample/en.lproj/PPViewController_iPhone.xib
  17. +2 −0 samples/RPSSample/RPSSample.xcodeproj/project.pbxproj
  18. +442 −297 samples/RPSSample/RPSSample/en.lproj/RPSGameViewController_iPad.xib
  19. +339 −417 samples/RPSSample/RPSSample/en.lproj/RPSGameViewController_iPhone.xib
  20. +2 −0 samples/Scrumptious/Scrumptious.xcodeproj/project.pbxproj
  21. +5 −0 samples/Scrumptious/scrumptious/SCAppDelegate.m
  22. +5 −0 samples/Scrumptious/scrumptious/SCViewController.m
  23. +2 −0 samples/SessionLoginSample/SessionLoginSample.xcodeproj/project.pbxproj
  24. +2 −0 samples/SwitchUserSample/SwitchUserSample.xcodeproj/project.pbxproj
  25. +1 −0 samples/SwitchUserSample/SwitchUserSample/SUAppDelegate.m
  26. +50 −22 samples/SwitchUserSample/SwitchUserSample/SUSettingsViewController_iPad.xib
  27. +62 −61 samples/SwitchUserSample/SwitchUserSample/SUSettingsViewController_iPhone.xib
  28. +1 −1 scripts/build_distribution.sh
  29. +1 −1 scripts/build_documentation.sh
  30. +6 −2 scripts/build_framework.sh
  31. +1 −2 scripts/run_tests.sh
  32. +22 −10 src/Cryptography/FBCrypto.m
  33. +24 −0 src/FBAccessTokenData.h
  34. +43 −23 src/FBAccessTokenData.m
  35. +2 −1 src/FBAppBridge.m
  36. +1 −1 src/FBAppBridgeTypeToJSONConverter.m
  37. +3 −2 src/FBAppCall.m
  38. +2 −2 src/FBAppEvents+Internal.h
  39. +28 −18 src/FBAppEvents.m
  40. +12 −23 src/FBCacheIndex.m
  41. +1 −1 src/FBDialog.m
  42. +16 −20 src/FBDialogs.m
  43. +1 −1 src/FBErrorUtility+Internal.h
  44. +1 −1 src/FBErrorUtility.m
  45. +1 −1 src/FBFrictionlessRecipientCache.m
  46. +2 −2 src/FBFrictionlessRequestSettings.m
  47. +3 −3 src/FBGraphObject.m
  48. +1 −1 src/FBGraphObjectTableDataSource.m
  49. +3 −3 src/FBLogger.h
  50. +9 −1 src/FBLoginView.m
  51. +3 −0 src/FBProfilePictureView.m
  52. +3 −0 src/FBRequest+Internal.h
  53. +3 −2 src/FBRequest.h
  54. +4 −3 src/FBRequest.m
  55. +2 −2 src/FBRequestBody.m
  56. +29 −6 src/FBRequestConnection.h
  57. +136 −189 src/FBRequestConnection.m
  58. +0 −6 src/FBRequestConnectionRetryManager.h
  59. +5 −27 src/FBRequestConnectionRetryManager.m
  60. +2 −2 src/FBRequestMetadata.h
  61. +25 −20 src/FBRequestMetadata.m
  62. +1 −1 src/FBSDKVersion.h
  63. +45 −0 src/FBSession+FBSessionLoginStrategy.h
  64. +2 −6 src/FBSession+Internal.h
  65. +4 −8 src/FBSession+Protected.h
  66. +17 −5 src/FBSession.h
  67. +169 −479 src/FBSession.m
  68. +1 −1 src/FBSessionAppEventsState.h
  69. +1 −1 src/FBSessionAppEventsState.m
  70. +19 −0 src/FBSessionAppSwitchingLoginStategy.h
  71. +86 −0 src/FBSessionAppSwitchingLoginStategy.m
  72. +2 −2 src/FBSessionAuthLogger.m
  73. +19 −0 src/FBSessionFacebookAppNativeLoginStategy.h
  74. +88 −0 src/FBSessionFacebookAppNativeLoginStategy.m
  75. +19 −0 src/FBSessionFacebookAppWebLoginStategy.h
  76. +40 −0 src/FBSessionFacebookAppWebLoginStategy.m
  77. +19 −0 src/FBSessionInlineWebViewLoginStategy.h
  78. +41 −0 src/FBSessionInlineWebViewLoginStategy.m
  79. +65 −0 src/FBSessionLoginStrategy.h
  80. +31 −0 src/FBSessionLoginStrategyParams.h
  81. +28 −0 src/FBSessionLoginStrategyParams.m
  82. +19 −0 src/FBSessionSafariLoginStategy.h
  83. +41 −0 src/FBSessionSafariLoginStategy.m
  84. +20 −0 src/FBSessionSystemLoginStategy.h
  85. +49 −0 src/FBSessionSystemLoginStategy.m
  86. +7 −0 src/FBSessionTokenCachingStrategy.h
  87. +1 −0 src/FBSessionTokenCachingStrategy.m
  88. +37 −0 src/FBSessionUtility.h
  89. +190 −0 src/FBSessionUtility.m
  90. +3 −3 src/FBSettings.m
  91. +10 −0 src/FBSystemAccountStoreAdapter.h
  92. +26 −2 src/FBSystemAccountStoreAdapter.m
  93. +29 −0 src/FBTask+Private.h
  94. +123 −0 src/FBTask.h
  95. +353 −0 src/FBTask.m
  96. +85 −0 src/FBTaskCompletionSource.h
  97. +87 −0 src/FBTaskCompletionSource.m
  98. +14 −17 src/FBTestSession.m
  99. +10 −10 src/FBURLConnection.m
  100. +12 −6 src/FBUserSettingsViewController.m
  101. +5 −1 src/FBUtility.h
  102. +64 −4 src/FBUtility.m
  103. +0 −2 src/FBViewController+Internal.h
  104. +91 −132 src/FBViewController.m
  105. +1 −1 src/FBWebDialogs.m
  106. +4 −3 src/Facebook.m
  107. +1 −1 src/FacebookSDK.h
  108. +3 −1 src/FacebookSDKIntegrationTests/FBAccessTokenDataTests.m
  109. +7 −5 src/FacebookSDKIntegrationTests/FBAppEventsIntegrationTests.m
  110. +60 −0 src/FacebookSDKIntegrationTests/FBBatchRequestIntegrationTests.m
  111. +3 −3 src/FacebookSDKIntegrationTests/FBCacheIntegrationTests.m
  112. +2 −1 src/FacebookSDKIntegrationTests/FBIntegrationTests.h
  113. +17 −9 src/FacebookSDKIntegrationTests/FBIntegrationTests.m
  114. +3 −3 src/FacebookSDKIntegrationTests/FBOpenGraphActionTests.m
  115. +66 −1 src/FacebookSDKIntegrationTests/FBRequestConnectionIntegrationTests.m
  116. +9 −6 src/FacebookSDKIntegrationTests/FBRequestIntegrationTests.m
  117. +407 −40 src/facebook-ios-sdk.xcodeproj/project.pbxproj
  118. +21 −0 src/tests/FBAppBridgeTests.h
  119. +651 −0 src/tests/FBAppBridgeTests.m
  120. +31 −1 src/tests/FBAppCallTests.m
  121. +3 −4 src/tests/FBAuthenticationTests.m
  122. +1 −1 src/tests/FBFacebookAppAuthenticationTests.m
  123. +33 −0 src/tests/FBIsStringRepresentingJSONDictionary.h
  124. +85 −0 src/tests/FBIsStringRepresentingJSONDictionary.m
  125. +33 −0 src/tests/FBIsURLHavingQueryParams.h
  126. +85 −0 src/tests/FBIsURLHavingQueryParams.m
  127. +137 −4 src/tests/FBRequestConnectionTests.m
  128. +16 −27 src/tests/FBSessionTests.m
  129. +3 −0 src/tests/FBTests.h
  130. +10 −0 src/tests/FBTests.m
  131. +3 −0 src/tests/FacebookSDKTests-Prefix.pch
@@ -73,7 +73,9 @@
E2D6B81115413A570050835F /* Frameworks */,
E2D6B80F15413A570050835F /* Products */,
);
+ indentWidth = 4;
sourceTree = "<group>";
+ tabWidth = 4;
};
E2D6B80F15413A570050835F /* Products */ = {
isa = PBXGroup;
@@ -6,7 +6,7 @@
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
-
+
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -50,17 +50,26 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
} else {
self.rootViewController = [[FPViewController alloc] initWithNibName:@"FPViewController_iPad" bundle:nil];
}
+#ifdef __IPHONE_7_0
+#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
+#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
+ if ([self.rootViewController respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
+ self.rootViewController.edgesForExtendedLayout &= ~UIRectEdgeTop;
+ }
+#endif
+#endif
+#endif
self.rootViewController.navigationItem.title = @"Friend Picker";
-
+
// Set up a UINavigationController as the basis of this app, with the nib generated viewController
// as the initial view.
- UINavigationController *navigationController =
- [[UINavigationController alloc] initWithRootViewController:self.rootViewController];
-
+ UINavigationController *navigationController =
+ [[UINavigationController alloc] initWithRootViewController:self.rootViewController];
+
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = navigationController;
[self.window makeKeyAndVisible];
-
+
return YES;
}
@@ -72,7 +81,7 @@ - (NSUInteger)supportedInterfaceOrientations{
// It is important to close any FBSession object that is no longer useful
- (void)applicationWillTerminate:(UIApplication *)application {
// Close the session before quitting
- // this is a good idea because things may be hanging off the session, that need
+ // this is a good idea because things may be hanging off the session, that need
// releasing (completion block, etc.) and other components in the app may be awaiting
// close notification in order to do cleanup
[FBSession.activeSession close];
@@ -73,7 +73,9 @@
E2511740152BB6FE00CB342A /* Frameworks */,
E251173E152BB6FE00CB342A /* Products */,
);
+ indentWidth = 4;
sourceTree = "<group>";
+ tabWidth = 4;
};
E251173E152BB6FE00CB342A /* Products */ = {
isa = PBXGroup;
@@ -76,7 +76,9 @@
5F6AF18C1532A37B00DDBD75 /* Frameworks */,
5F6AF18A1532A37B00DDBD75 /* Products */,
);
+ indentWidth = 4;
sourceTree = "<group>";
+ tabWidth = 4;
};
5F6AF18A1532A37B00DDBD75 /* Products */ = {
isa = PBXGroup;
@@ -61,6 +61,15 @@ - (void)viewDidLoad {
FBLoginView *loginview = [[FBLoginView alloc] init];
loginview.frame = CGRectOffset(loginview.frame, 5, 5);
+#ifdef __IPHONE_7_0
+#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
+#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
+ if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
+ loginview.frame = CGRectOffset(loginview.frame, 5, 25);
+ }
+#endif
+#endif
+#endif
loginview.delegate = self;
[self.view addSubview:loginview];
Oops, something went wrong.

0 comments on commit 41f9a18

Please sign in to comment.