Created
November 17, 2011 14:44
-
-
Save rubenfonseca/1373298 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Classes/ShareKit/Sharers/Services/Facebook/FBConnect/FBRequest.h b/Classes/ShareKit/Sharers/Services/Facebook/FBConnect/FBRequest.h | |
index 75ac9e7..4ad296d 100644 | |
--- a/Classes/ShareKit/Sharers/Services/Facebook/FBConnect/FBRequest.h | |
+++ b/Classes/ShareKit/Sharers/Services/Facebook/FBConnect/FBRequest.h | |
@@ -52,7 +52,7 @@ | |
*/ | |
+ (FBRequest*)requestWithSession:(FBSession*)session delegate:(id<FBRequestDelegate>)delegate; | |
-@property(nonatomic,assign) id<FBRequestDelegate> delegate; | |
+@property(nonatomic,retain) id<FBRequestDelegate> delegate; | |
/** | |
* The URL which will be contacted to execute the request. | |
diff --git a/Classes/ShareKit/Sharers/Services/Facebook/SHKFacebook.m b/Classes/ShareKit/Sharers/Services/Facebook/SHKFacebook.m | |
index 674fc56..c11c38a 100644 | |
--- a/Classes/ShareKit/Sharers/Services/Facebook/SHKFacebook.m | |
+++ b/Classes/ShareKit/Sharers/Services/Facebook/SHKFacebook.m | |
@@ -196,7 +196,7 @@ | |
{ | |
[self sendDidStart]; | |
- [[FBRequest requestWithDelegate:self] call:@"facebook.photos.upload" | |
+ [[FBRequest requestWithSession:session delegate:self] call:@"facebook.photos.upload" | |
params:[NSDictionary dictionaryWithObjectsAndKeys:item.title, @"caption", nil] | |
dataParam:UIImageJPEGRepresentation(item.image,1.0)]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment