Programmatically post an image on a comment at Facebook
I used the Facebook API to post an image or a comment on the wall using an 开发者_如何转开发iPhone. But I am trying to post an image on someone's comment through my application. How can we programmatically post an image to someone's post as a comment?
According to the Graph API documentation you can post comments to an object's /comments connection, but the only argument it takes is "message". So, no images.
Normally if you paste a URL to an image in a post, it automatically appears as an image, but I don't think I've ever seen images in comments on posts.
You can try putting it inside <img src="pic-url-goes-here">
, but I'm pretty sure that does not work in replies at least.
If it really is impossible, you should (ask to) modify your application's functionality. Uploading the image from the application and linking to it in the comment would at least "get it in there" (as a link).
精彩评论