Marco Pracucci

Facebook Open Graph - Query image by username no longer available

by Marco Pracucci Comments

Until yesterday you were able to query Facebook Open Graph to get an user’s image by username. Starting today it’s no longer available, but you can still query it by ID.

Doesn’t work anymore

    "error": {
        "message": "(#803) Cannot query users by their username (marco.pracucci)",
        "type": "OAuthException",
        "code": 803

Does work

Tip: how to get the biggest image available

Bonus: if you’re wondering how to fetch to biggest image available, you can simply add width and height parameters. Facebook will return the biggest image available, honoring input max width and height.

Related articles

RSS Feed

To get a notification each time a new article gets published, type the following command on your Slack: /feed subscribe