diff --git a/scripts/build_distribution.sh b/scripts/build_distribution.sh index bb31bf8592..2a5b45ad32 100755 --- a/scripts/build_distribution.sh +++ b/scripts/build_distribution.sh @@ -69,6 +69,8 @@ mkdir -p $FB_SDK_BUILD_PACKAGE_DOCS || die "Could not copy $$FB_SDK_FRAMEWORK_DOCS/docset/Contents" \cp $FB_SDK_ROOT/README $FB_SDK_BUILD_PACKAGE/Documents/FacebookSDK \ || die "Could not copy README" +\cp $FB_SDK_ROOT/LICENSE $FB_SDK_BUILD_PACKAGE/Documents/FacebookSDK \ + || die "Could not copy LICENSE" # ----------------------------------------------------------------------------- # Fixup projects to point to the SDK framework diff --git a/src/FBLoginView.m b/src/FBLoginView.m index 3b45bd8e77..9016385513 100644 --- a/src/FBLoginView.m +++ b/src/FBLoginView.m @@ -133,6 +133,9 @@ - (void)initialize { [FBSession openActiveSessionWithPermissions:self.permissions allowLoginUI:NO completionHandler:nil]; + + // wire-up the current session to the login view, before adding global session-change handlers + [self wireViewForSession:FBSession.activeSession]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleActiveSessionSetNotifications:) @@ -144,8 +147,6 @@ - (void)initialize { name:FBSessionDidUnsetActiveSessionNotification object:nil]; - [self wireViewForSession:FBSession.activeSession]; - // setup button self.button = [UIButton buttonWithType:UIButtonTypeCustom]; [self.button addTarget:self