简体   繁体   English

Facebook对话框从您的应用中提供自定义图片而不是网址

[英]facebook dialog feed custom picture from your app instead of an url

Is it possible to encode a picture from our iPhone to use with facebook dialog feed instead of passing an URL.. ! 是否可以对我们iPhone中的图片进行编码以用于Facebook对话框供稿,而不用传递URL。

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"Blablabla", @"name",
                               @"Blablabla", @"caption",
                               @"Blablabla", @"description",
                               @"http://google.com", @"link",
                               @"HTTP:CAN IT BE AN ENCODED PICTURE??", @"picture",
                               actionLinksStr, @"actions",
                               nil];

[facebook dialog:@"feed" andParams:params andDelegate:self];    

There's a reference link for params: http://developers.facebook.com/docs/reference/api/post/ 有一个用于参数的参考链接: http : //developers.facebook.com/docs/reference/api/post/

我上传到Amazon s3,然后使用该URL发布到提要。

I've been stuck at the same problem and was quite shocked that there's no support for uploading images. 我一直遇到同样的问题,对于不支持上传图像感到非常震惊。 My solution was to upload the picture to my remote web server and use the link that I've got from server. 我的解决方案是将图片上传到远程Web服务器,并使用从服务器获取的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM