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.

You may also be interested in ...

Upcoming conferences

I will join the following conferences. Reach me out on Twitter if you wanna meet:
Incontro DevOps 2020 Virtual 22 October 2020