【发布时间】:2012-11-05 10:08:08
【问题描述】:
我正在使用此代码在 facebook 上发布图像,但它也在 facebook 上显示图像 url。我想隐藏这个网址:
这是我将图片发布到 facebook 的代码
#pragma mark Facebook
-(void)facebook
{
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"I'm using Shape App", @"message", @"I'm using Shape App", @"caption",
@"http://www.imageurlhost.com/images/3kft472rvl2qtnzx11_Sample.png", @"picture",
@"I'm using Shape App", @"title",nil];
[[delegate facebook] dialog:@"feed" andParams:params andDelegate:self];
}
请看下面的图片
【问题讨论】:
-
您是否尝试过在
source参数中包含图像数据本身,而不是在picture中包含指向它的URL? -
是的,我也试过这个,但它在我的代码中工作
-
什么是 image1?是
NSData吗?你试过用file作为参数名吗? -
我已经尝试将源作为数据或图像两者