Facebook posts Images and ImageProcessor.Web

Discussion in 'Facebook API' started by capouk75, Jul 1, 2016.

  1. #1
    Hello everyone.

    When I query https://graph.facebook.com/371535272962335/posts?fields=full_picture,message,createdtime&access_token=****";

    I get back a JSON response that contains "full_picture":

    "data": [ { "full_picture": "https://scontent.xx.fbcdn.net/v/t1.0-9/134507499674281367063769197606519706136545n.jpg?oh=ed050343e82bef662ad9fcdc992b461b&oe=57EDD623", "message": "Happy coding to everyone", "createdtime": "2016-06-18T07:05:45+0000", "id": "371535272962335967428136706376" },

    To use ImageProcessor to crop/resize the image I need to attach other parameters to the querystring for example: &anchor=center&mode=crop&width=248&height=93 making the full_picture url https://scontent.xx.fbcdn.net/v/t1.0-9/134507499674281367063769197606519706136545n.jpg?oh=ed050343e82bef662ad9fcdc992b461b&oe=57EDD623&anchor=center&mode=crop&width=248&height=93

    When I add the other parameters to the query string the picture does not longer display.

    I have noticed that for the fb picture you can call https://graph.facebook.com/4/picture?width=100&height=100

    Is there anything similar for the full_picture in the posts? Or any other way to achieve the same result?

    Thank you
     
    capouk75, Jul 1, 2016 IP