skip to Main Content

I have an issue now, suddenly all url image from facebook graph API in my database return a default image look likes this:

enter image description here

Example url :

http://graph.facebook.com/{user-id}/picture?type=large

3

Answers


  1. It is a known bug (which could also mean that it will not be possible anymore in the future):

    You should subscribe to the bugs and wait.

    Update: You can make it work by adding an access_token to the API call, but you should only do that server side, of course. An App Access Token should be good enough:

    https://graph.facebook.com/<userId>/?fields=picture&type=large&access_token=...
    

    Update 20.04.2018: It seems like picture URLs are working without an Access Token again: <img src="https://graph.facebook.com/[app-scoped-id]/picture" />

    Login or Signup to reply.
  2. Please add access token parameter in the url

    https://graph.facebook.com/id/picture?type=large&access_token=faskfjsld

    This will work for sure.

    Login or Signup to reply.
  3. There is an update here:
    https://developers.facebook.com/bugs/2054375031451090/

    I just tried and it works, by simply appending your access token to the URL link.

    So this:

    https://graph.facebook.com/<userId>/?fields=picture&type=large
    

    Should become like this:

    https://graph.facebook.com/<userId>/?fields=picture&type=large&access_token=...
    

    Hope it helps!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search