-
-
Save niraj-shah/ded3df1074a4c130e7f0 to your computer and use it in GitHub Desktop.
Adding a photo comment to Facebook with no message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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