Question

In facebook site you able to make a comment and attach image to it. Is it possible to do the same things with facebook api?

I have read this facebook for dev link and there is no answer to my question.

Was it helpful?

Solution

If you read the documentation properly, it says-

message is the only parameter in this API call. It should be a string containing the comment text.

So, using the API you can just comment a message to the object using-

POST /{object-id}/comments?
   message='This is my message'

, no link/picture could be attached alongwith.

OTHER TIPS

I don't know if it is a recent change in the way Facebook handles this, but if I put the complete url in the comment, Facebook detects it as an image and shows it there (along with the url).
Maybe it's not the cleanest way, but it's a way.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top