How do all friends images using the fields parameter not work?

I am using the JavaScript SDK for Facebook Connect. Yesterday I uploaded all the friends of a registered user as follows:

https://graph.facebook.com/me/friends?fields=name,first_name,picture&access_token=MYACCESSTOKEN&callback=? 

Using this code, I got the identifier, name, name and image of all the friends that the user registered. This is caused by using AJAX / jsonp. As I said, it worked yesterday, and since then there have been no changes to the code.

Today I get the identifier, name and first name - no image (!) . Could this be a glitch on the Facebook chart, were there any updates that I might have missed, or is the above calling the chart API incorrect?

Is this the right way to get an image of all friends?

+6
source share
2 answers

Update: now the bug is fixed.

Again, Facebook proves. Why does someone just remove something from the API without notifying the people they are about to do?

Fyi, I sent this error report:

https://developers.facebook.com/bugs/269804093087242

My guess is that it is ignored or closed as a duplicate or wontfix, and there will be no treatment.

The problem with the workaround above is that img src url becomes an http redirect instead of an absolute url as before. It just slows down.

+2
source

You are right, the image field is no longer returning. However, it is very easy to get the image URL. http://graph.facebook.com/{friendId}/picture you can either call this to get it programmatically, or even call this graph call as the src attribute of the image tag <img src="http://graph.facebook.com/{friendId}/picture" /> .

+11
source

Source: https://habr.com/ru/post/906414/


All Articles