Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix calls to Facebook SDK where signatures have changed

  • Loading branch information...
commit 70829ceb19780103c97a9243518b0aa2c07b0d68 1 parent d7c0e79
Dave Johnson authored
Showing with 3,889 additions and 3 deletions.
  1. +3,886 −0 example/iOS/www/phonegap-1.0.0.js
  2. +3 −3 native/ios/FacebookConnectPlugin.m
View
3,886 example/iOS/www/phonegap-1.0.0.js
3,886 additions, 0 deletions not shown
View
6 native/ios/FacebookConnectPlugin.m
@@ -56,8 +56,8 @@ - (void) init:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
NSString* callbackId = [arguments objectAtIndex:0];
NSString* appId = [arguments objectAtIndex:1];
- self.facebook = [[Facebook alloc] initWithAppId:appId];
-
+ self.facebook = [[Facebook alloc] initWithAppId:appId andDelegate: self];
+
PluginResult* result = [PluginResult resultWithStatus:PGCommandStatus_OK];
[super writeJavascript:[result toSuccessCallbackString:callbackId]];
}
@@ -94,7 +94,7 @@ - (void) login:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
// save the callbackId for handleOpenURL return (only works if the app is multi-tasked!)
self.loginCallbackId = callbackId;
- return [facebook authorize:marray delegate:self];
+ return [facebook authorize:marray];
}
Please sign in to comment.
Something went wrong with that request. Please try again.