My goal is to pull latests posts from given page. This works just fine using API endpoint {page_id}/posts
. Some of the posts are of type="photo"
and have fields picture
and full_picture
. Trouble is, those image urls are small, more like thumbnails than images.
I noticed that lately there is another field object_id
that comes with any post of type photo. Making request to {object_id}/picture?redirect=false
returns a url to an image.
I would like to get the url from {object_id}/picture
when pulling posts from {page_id}/posts
, but i can't find a way of doing it.
I tried to nest the request {page_id}/posts?fields=object_id.fields(picture)
, and all i got is Subfields are not supported by object_id
.
How can i get the url to an image posted by the page?
Edit
Just to clarify my question:
I want to pull all latest posts for given page. And for posts with type="photo"
i want to pull image url in addition to other fields, like message. Preferably, without additional request to Graph API.
My usual request looks like this:
{page_id}/posts?fields=id,object_id,message,description,full_picture,source
This brings all kinds of posts for the page_id
. full_picture
is a url to thumbnail-sized image. I would like to get a url to same image with bigger size, if it's possible.