I'm getting the picture field (poster image) from a video node through the Facebook Graph API.
It works, but the response contains the picture in 128x128 pixels format.
Does anyone have any idea how to get a bigger (the full) one?
Apparently I missed the field 'format' from the video node. This field contains an array with the thumbnails as well in multiple formats.
Related
I need to take the cover of a Facebook page . I can take it with field=cover, and it gives me a picture. But when it's a video (you can see one on this page facebook.com/renaultfrance), it gives me a preview of the video, and a picture too. I'd need the whole video, i tried to use lenght on the id I have with field=cover, but the API returned an error. I think it's because I try a video field on a photo. Has someone here tried this ? Could you help me ? Thanks
I'm using the facebook graph api v2.6. I'm accessing the photo's of a user via "me/photos?fields=images". This provides an array of various sizes of the given photo. Obviously I could just run through the list and pick the largest one but I wanted to know if there is a way to limit the results returned to the largest one to reduce the payload size since I only care about the highest resolution one.
Also, please note that "type=normal" does not return the largest image (nor does it seem to work on the photos node anyway) and the "source" field is not the largest image either and that field is depreciated anyway. Thanks.
Update: please note I am not trying to access the profile image of a user, I am trying to access the photos node of the user which is all of the photos they have been tagged in. Here is the documentation: https://developers.facebook.com/docs/graph-api/reference/v2.6/user/photos
It returns a list of photos as documented here: https://developers.facebook.com/docs/graph-api/reference/photo/
The various sized images are in the "images" field and I want to know if I can restrict that to just the largest image. It doesn't appear so in the documentation but Facebook's documentation has been historically lacking...
You want get a picture for a Facebook User?
Try this way
https://graph.facebook.com/user_id/picture?type=large
I'm trying to post a message on my wall via facebook graph api. I set a picture parameter (an external url) and a message parameter. The message itself contains a link. When the item gets posted to the feed, however, an image is shown as a very small thumbnail and there's a link to my website next to it (on the right). What i want to do instead is to make the thumbnail appear full width on the post (like when you post via facebook itself). I don't set the link to my website anywhere, only picture url and message parameters are set - so where is it comming from and is there a way to remove it and make the picture appear right below the message, taking full width of the post?
Thank you for your answers
To display a picture with full width, your picture size must be in 1200x630 for best display on high resolution device.
Facebook sharing best practice
I'm curious to know if multiple images actually show up in the feed. I know they're supported but in not one single case of testing have I seen multiple images show up on the feed. So what the point in having multiple images in the open graph object? Where do secondary, tertiary images go?
An image URL which should represent your object within the graph. The
image must be at least 50px by 50px and have a maximum aspect ratio of
3:1. We support PNG, JPEG and GIF formats. You may include multiple
og:image tags to associate multiple images with your page.
Doing a test with object debugger clearly shows that they're in there correctly (sans the image type property):
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fpluggin.it%2Fs%2FTI4o%2F
(http://pluggin.it/s/TI4o/ - note the OG tags only show up for Facebook user agent)
You may specify multiple images using this markup. The first image
matching minimum requirements is the default selection. A Facebook
user authoring a status update might select a different thumbnail
based on your explicitly-defined images. A hotel might include
multiple photos of the property as Open Graph protocol images,
allowing the person sharing the story to share a view of the pool or a
view of the restaurant.
Basically I know how to get images into the graph, but I can't seem to find where / how they are displayed in new feed. Are apps like Instagram putting images into photo galleries rather than using open graph? Is that how they display multiple images?
There’s always only one image in these feed posts.
“A Facebook user authoring a status update might select a different thumbnail based on your explicitly-defined images.”
When you give multiple images in your OG tags, the user making the post has the choice between them while making his post. He choses, he posts – and that image chosen stays the one image for that post.
I am grabbing the photo's of my user's friends on my site. And, the photos of the friends look very dull, and photos seem to have a very low resolution.
How can I make sure that the photos are sharp ? Do I need to do any post processing ?
What are the max dimensions that should be used for showing photos ?
If you're grabbing profile thumbnail, it's because they get resized when you upload them to Facebook. Facebook does this automatically. If you want higher quality photos, you need to use a different API method than the the one used to get profile photos:
http://developers.facebook.com/docs/reference/api/
I'd suggest "Photos" or "Photo albums" method.
EDIT The actual dimensions for a profile photo are 50x50. If you try to display them larger than this, you're going to get loss. Non vector graphics can only contain so much data per pixel.