Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving Default Image All Url Profile Picture from Facebook Graph API [closed]

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

like image 924
itx Avatar asked Apr 19 '18 09:04

itx


People also ask

Does Facebook graph search still work?

In early June 2019, the feature was further deprecated, with the majority of URLs for graph search queries no longer working. Facebook explained this by saying: "The vast majority of people on Facebook search using keywords, a factor which led us to pause some aspects of graph search and focus more on improving keyword ...


2 Answers

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

  • https://developers.facebook.com/bugs/2054375031451090/

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" />

like image 112
andyrandy Avatar answered Sep 19 '22 23:09

andyrandy


Please add access token parameter in the url

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

This will work for sure.

like image 43
sanjay manvani Avatar answered Sep 18 '22 23:09

sanjay manvani