[英]Is this the expected behavior when posting an image to a user's wall with the iOS Facebook SDK?
我正在使用以下代码发布到用户的墙上。 它工作正常,但我注意到它还创建了一个以我的应用程序命名的相册,并将图像添加到该相册。 这是iOS应用程序的预期行为吗? 有没有办法只发布到墙上而不保存用户帐户中的图像?
FBRequestHandler handler =
^(FBRequestConnection *connection, id result, NSError *error)
{
// output the results of the request
NSLog(@"Error - %@", error);
NSLog(@"Result - %@", result);
};
UIImage *img = [logo getImage];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"Test Message",@"message",img,@"picture",nil];
[FBRequestConnection startWithGraphPath:@"me/Photos"
parameters:params
HTTPMethod:@"POST"
completionHandler:handler];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.