Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
466 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...