Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
461 views
in Technique[技术] by (71.8m points)

objective c - How to post Image with status in Facebook in Iphone sdk?

HI Guys,

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];

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

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

Thank you, Monish

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...