如何在Iphone SDK中在Facebook中发布具有状态的图像? [英] How to post Image with status in Facebook in Iphone sdk?

查看:61
本文介绍了如何在Iphone SDK中在Facebook中发布具有状态的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在这里,我遇到了一个问题,我该如何发布包含Facebook状态在内的图片,任何人都可以提出这一建议.

Here I am having problem that How can I post an image including status in facebook can anyone suggest this.

我用于发布带有状态的代码如下所示:

The code I used for posting the status with the inage is as shown below:

NSMutableDictionary *args = [[[NSMutableDictionary alloc] init] autorelease];
[args setObject:status forKey:@"caption"];
[[FBRequest requestWithDelegate:self] call:@"facebook.photos.upload" params:args dataParam:imageFromCorkit];

其中imageFromCorkit是一个NSData参数,其中包含图像数据.

where imageFromCorkit is a NSData argument which contains the image data.

但是我没有在我的Facebook帐户中得到这些帖子.

But i didn't get these posts in my facebook account.

谢谢你, 结束

推荐答案

您必须将图像发布到您的照片上(使用您现在正在使用的方法,不带参数),然后发布链接到该照片的墙贴.

You must post the image to your photos (using the method you are doing now, without the args) and then post a wall post that links to the photo.

这篇关于如何在Iphone SDK中在Facebook中发布具有状态的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆