tom
tom

Reputation: 14513

Upload pictures but don't show an update on the wall

Does Facebook API allow upload pictures (with user's permission) to user's album but don't update user's wall?

Upvotes: 0

Views: 1638

Answers (2)

C3roe
C3roe

Reputation: 96316

The no_story parameter is what you are looking for:

“If set to 1, optionally suppresses the feed story that is automatically generated on a user’s profile when they upload a photo using your application.”

https://developers.facebook.com/docs/reference/api/user/#photos

Upvotes: 0

guybennet
guybennet

Reputation: 683

first you need user_photos or friends photos permission.

ı think this helps.

http://facebook.stackoverflow.com/questions/2718610/upload-photo-to-album-with-facebooks-graph-api

https://developers.facebook.com/docs/reference/fql/album/

$facebook->setFileUploadSupport(true);
$args = array('message' => 'Photo Caption');
$args['image'] = '@' . realpath($FILE_PATH);

$data = $facebook->api('/'. $ALBUM_ID . '/photos', 'post', $args);
print_r($data);

Upvotes: 1

Related Questions