Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save niraj-shah/ded3df1074a4c130e7f0 to your computer and use it in GitHub Desktop.
Save niraj-shah/ded3df1074a4c130e7f0 to your computer and use it in GitHub Desktop.
Adding a photo comment to Facebook with no message
<?php
// following on from: https://gist.github.com/niraj-shah/9780965
$photo_comment = $facebook->api( $object_id . "/comments", "POST", array(
// local image used, prefixed with @ sign
'source' => '@meme.jpg'
// no message
) );
// will return id of comment on success
print_r( $photo_comment );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment