Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Gifting fix

  • Loading branch information...
commit ffe408f3ceba5e5c223eb748bb0f46898c8eb721 1 parent ca75361
Tomi Joki-Korpela authored
View
1  FacebookDevStory/AppDelegate.h
@@ -20,6 +20,7 @@
id whoamiRequest;
int64_t fbid;
UIButton *requestDialogButton;
+ UIButton *feedDialogButton;
}
@property (strong, nonatomic) UIWindow *window;
View
7 FacebookDevStory/AppDelegate.m
@@ -58,7 +58,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[requestDialogButton setHidden:YES];
// Add the feed dialog button
- UIButton *feedDialogButton = [UIButton
+ feedDialogButton = [UIButton
buttonWithType:UIButtonTypeRoundedRect];
feedDialogButton.frame = CGRectMake(40, 260, 200, 40);
[feedDialogButton setTitle:@"Publish Feed" forState:UIControlStateNormal];
@@ -66,7 +66,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
action:@selector(feedDialogButtonClicked)
forControlEvents:UIControlEventTouchUpInside];
[self.viewController.view addSubview:feedDialogButton];
-
+ [feedDialogButton setHidden:YES];
+
// Add the logout button
/*
UIButton *logoutButton = [UIButton
@@ -238,7 +239,7 @@ - (void)request:(FBRequest *)request didLoad:(id)result {
NSString *senderID = [[requestObject objectForKey:@"from"] objectForKey:@"id"];
NSString *recipientID = [[requestObject objectForKey:@"to"] objectForKey:@"id"];
NSLog(@"request id:%@ sender:%@ recipient:%@", requestID, senderID, recipientID);
- int itemType = [recipientID longLongValue]%3;
+ int itemType = [senderID longLongValue]%3;
[self setItems: itemType value:[self numItems: itemType] + 1];
// Delete request
Please sign in to comment.
Something went wrong with that request. Please try again.