I am installing a Facebook-like box in iframe form. When you are not logged into Facebook, it leaves a blank spot that is set to the parameters specified by the original iframe. I would like to fill that iframe with an image to link to the Facebook page when someone is not logged into Facebook.
Logged In: http://ripvision.tv/images/fb-logged-in.PNG
Not Logged In: http://ripvision.tv/images/fb-not-logged-in.PNG
You can see on the "Logged In" that I was trying to set a class with a background image to show up when the content didn't show up but that showed up when content loaded and without. I would just like it to load an image link if the Facebook content doesn't load. I have tried everything I can think of.
I thought adding a background-color into the style of the iframe would work but it didn't. Here is the iframe code from Facebook.
<iframe class="fb_background" src="//www.facebook.com/plugins/likebox.php?href=http %3A%2F%2Fwww.facebook.com%2Fteamripoutdoors&width=236&height=258&colorscheme=light&show_faces=true&header=false&stream=false&show_border=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:258px; background-color: #000;" allowTransparency="true"></iframe>
I have been stumped on this for hours. If anyone could help, I would appreciate it.