How do I insert a picture from Facebook? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I insert a picture from Facebook?

I'm writing my first code and I want to insert a picture from Facebook, but it's not working. I can insert the sololearn tree picture, but not the one I want. What am I doing wrong? Is it just impossible to insert a picture from Facebook like this? This uses a different picture than the one I want (as it's a private photo of one of my friends). I hope if someone can help me with this one it will work with the one I want to use. https://code.sololearn.com/WHlVYa0e9AB1/?ref=app

24th Mar 2019, 5:57 PM
Jesus And Jaffacakes
Jesus And Jaffacakes - avatar
5 Answers
+ 4
Hi if your on desktop go to inspect and copy the image link
24th Mar 2019, 6:03 PM
Yash🏁🔘
Yash🏁🔘 - avatar
+ 4
click 'View full size' on bottom left corner and copy the url of that page
24th Mar 2019, 7:20 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 1
Did you figure it out? What you have in your img src="..." is not the address of the image, it's the address of the PAGE showing the image! Actually hot linking images from Facebook is a little tricky. If you want to make sure the image works in the future, you should download and upload it somewhere like Google Drive, MS OneDrive, Dropbox, imgur.com etc
24th Mar 2019, 9:16 PM
Pete Wright
Pete Wright - avatar
0
Thanks guys I got that sorted
24th Mar 2019, 8:07 PM
Jesus And Jaffacakes
Jesus And Jaffacakes - avatar
0
Yeah thanks the other guys answer this for me. I get about finding the image address now
24th Mar 2019, 9:19 PM
Jesus And Jaffacakes
Jesus And Jaffacakes - avatar