Post Photos to an album but hidden on the timeline using the Facebook Graph API - facebook

Is there a way to post a photo to an album, but do it in a way that it is hidden from the Timeline.
I am able to post Photos using the Graph API to the album and then manually go and hide a newsfeed post resulting from the timeline for the Wall.
Is it possible to do this at the time of posting the Photo itself. Is there a field/attribute that I can set which will prevent the Photo Post from showing on the Timeline ?
Thanks!

Yes, add no_story:1 to your POST data, images will be uploaded but not shown in timeline.
check out http://developers.facebook.com/blog/post/482/

Related

Facebook RestFB publish a post/milestone along with photo to page

I am trying to post a feed on page along with photo,text posts without any error but picture doesnt get uploaded.
Also similar to Milestones it gets posted but how do i attach/upload a photo to it.
I am trying to Post a Milestone on FB using RestFB.
FacebookType publishResult = facebookClient.publish("pagename" + "/milestones",
FacebookType.class,
BinaryAttachment.with("photo", fileToUpload),
Parameter.with("title", title),
Parameter.with("picture", ""),
Parameter.with("description", description),
Parameter.with("start_time", new Date())
-......
But it posts the milestone without posting photo
It appears this is a (deliberate?) limitation of the Facebook Graph API. See Upload image to Facebook Wall / Feed via Graph API
You may post image data directly to a photo album but the feed endpoints only accept image URLs.

Facebook photo feed

I was using FB api to post photos to my fanpage's news feed (http://www.facebook.com/MyApp/photos_stream), but from some time it stopped posting it to news feed and it just uploaded photos to some album (http://www.facebook.com/MyApp/photos).
This is the api command I was using before and after it was working, nothing has changed on my side.
$result = $facebook->api('/123456789/photos', 'post', $attrs);
So the question is, how to post photos to fanpage wall (timeline) properly and why it stopped working by itself?
Thanks
I had the same problem a few times ago.
In fact it was working but you have to go to your photo folder and accept the uploaded image.
In the album Facebook will show you a panel saying you have to approve those photos.
By doing this Facebook will publish the images on the timeline.
I know this is very annoying but I didn't find a better solution (I think Facebook has added a new security to avoid some abuses).
EDIT:
Look at the Facebook documentation.
You can post photos to a Page's Wall by issuing an HTTP POST request
to PAGE_ID/photos with the publish_stream and manage_pages permissions
and the following parameters.
Make sure you are using those two permissions and that your parameters are correct.

Uploaded photo via Facebook's Open Graph API isn't centered in Timeline thumbnail

Facebook does not correctly center the Timeline photo thumbnail when I upload the photo (810x694) via Open Graph API (POST /me/photos). However, when I manually attach the photo as a status update, the Timeline photo thumbnail is centered properly. Is there a request parameter, fix, or workaround for this?
Photo uploaded via OG API:
Photo posted as a status update:
Totally overlooked this, the issue was related to tagged friends in the photo. I changed the tag position to the center/50% to resolve the issue.

app upload picture to specific album without posting on page wall

How to post a picture to a specific album in page from app without posting the image on page wall? Currently I can post picture to a specific album, but I don't want to see that on page wall becouse the app will post a lot of pictures. So how that is possible?
This is an example of app that uploads generated picture to specific album but dosn't publish it on its wall, I'm trying to do the same.
http://www.facebook.com/MercedesBenz?sk=app_318742408161371
Yes this is possible by providing no_story parameter equal to 1 while uploading photo.
POST https://graph.facebook.com/ALBUM_ID/photos?no_story=1
This information once was documented for photo object, but not anymore exists in current documentation.
This is described in Developer Blog post: Suppressing auto-generated feed stories when uploading photos

Is it possible to download all of my photos on facebook through facebook graph api?

I want to download all of my photos and albums from facebook in a programatic way.
I know its possible to push photos to fb through graph api. I was wondering if it is possible to pull photos as well.
Yes. First you would have to get all the albums:
https://graph.facebook.com/me/albums?access_token=
Then you would have to request the list of photos in each album:
https://graph.facebook.com/album_Id_here/photos?access_token=
The result of the last request will give you a JSON object that contains urls of each photo in the album.
See the documentation here: http://developers.facebook.com/docs/reference/api/