JSFiddle - React, Tailwind, and code Playground

by jeffgw

HTML

<img id="photo" />

JavaScript

var height = 25;
var width = 25;
var url = 'https://graph.facebook.com/zuck/picture?&redirect=0&height='+height+'&width='+width;

$.getJSON( url, function(data) {
	   
	  var photoURL = data.data.url;
	  $('#photo').attr('src', photoURL);
	  	    
});