I'm using openfb-angular (Facebook API library) to get me/picture.
The return data is "url" contains Base64 data here is the facebook documentation.
Here is my code:
JS
OpenFB.get('/me/picture', {format: 'json'}).success(function (imgData)
{
$scope.main.user.imageData = imgData;
});
HTML
<img ng-src="data:image/jpg;base64,{{main.user.imageData}}">
It's not working and I get an empty img tag.
Where is my mistake?
image/jpeginstead ofimage/jpg?