【发布时间】:2012-12-11 01:51:39
【问题描述】:
我正在使用以下代码发布到用户的墙上。它工作正常,但我注意到它还创建了一个以我的应用程序命名的相册,并将图像添加到该相册。这是 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];
【问题讨论】:
-
我认为您必须从 facebook 方面授予您的应用程序权限。
-
我想你误解了我的问题。它发布成功,但我想也许我发布了错误的东西。我不想将任何图像添加到用户的相册中。我只想用图片和消息更新用户的状态。
-
尝试使用:
[FBRequestConnection startWithGraphPath:@"me/feed" parameters:params HTTPMethod:@"POST" completionHandler:handler];
标签: iphone ios facebook ipad facebook-graph-api