Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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