Some background info: i am working with node.js with the express framework and with mongo and passport.js
So basically i was able to login to my app with the FB login and retrieve some info like username, token, id, displayName and photos. Then this data is saved in to my DB (mongo).
I can read all of the data out in my view with the ejs syntax except for the image.
in my view i have the following code for the image:
<%= user.facebook.profilePic %>
message: "(#803) Some of the aliases you requested do not exist: Grace Yip",
<%= img_tag( user.facebook.profilePic ) %>
encodeURI because the URI contains a space in it which is making is invalid:
<%= img_tag(encodeURI(user.facebook.profilePic)) %>