Skip to content

Instantly share code, notes, and snippets.

@rubenfonseca
Created November 17, 2011 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenfonseca/1373298 to your computer and use it in GitHub Desktop.
Save rubenfonseca/1373298 to your computer and use it in GitHub Desktop.
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