I have a .ejs page with this piece of code
<li><% if(userInfo.image=="" || userInfo.image==null || userInfo.image==undefined){ %>
<img src="/assets/img/default.png" class="img-responsive pic-bordered" alt="" /><%}else{%>
<img src="
<%= userInfo.image%>" class="img-responsive pic-bordered" alt="" /><%}%>
</li>
The userInfo.image value is " http://graph.facebook.com/xxx728122636xxxx/picture?redirect=true&width=432&height=432 " but the image doesn't show.
example: https://jsfiddle.net/f6dsp3wd/1/
Edit Ok i figured out. This computer im working on has a extension on its browsers named "Ghostery" that was blocking the display of facebook image
you can close this
尝试使用https://graph.facebook.com/<%= userInfo.id %>/picture?type=square
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.