No pictures are showing up in Facebook when I post the link to my site

Taylor Mitchell

MY website is Hidden for Privacy. I am trying to get a photo to show up when I post my link to my facebook, but I had all of my pictures in my CSS rather than in the HTML because it is a parallax site. Now I then searched what Facebook looks for with the pictures it posts and was given HTML which I then switched to haml. I did have to hide the picture simply because I can't have it displayed on the page when I already have something displayed.

My code is...

.hidden
  = link_to(image_tag("/assets/WB_small.jpg", :alt => "logo"), "/")

The HTML output is...

<div class='hidden'>
      <a href="/"><img alt="logo" src="/assets/WB_small.jpg" /></a>
    </div>

Has anyone dealt with something like this before or knows a specific way to make Facebook grab a photo, but not display it on the website?

user3599269

try this

<head>
<meta property='og:image' content='image.jpg'/>
</head>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Facebook pictures not showing up

Facebook "hijacks" my Android app when I post a link to it

Pictures not showing up in site hosted by GitHub

All text in my html site is coming up as a link when I run it in localhost:5000

My WordPress featured image is not showing up on Facebook post and with Tweets

What fields are accessible when I use the Facebook login on my site?

spin.js is not showing up on my site?

My site is showing up as desktop on mobile

Get Started button not showing up on Facebook Messenger when going through the m.me link

Rails Turbolinks mixing up my slider when site is reached via link

Pictures don't show up in Facebook if I use Ubuntu

Is it possible for users to post to my Facebook page through my site?

Prevent site description to appear on Facebook "shared link" post through API

Remove attribute text showing up after post on Rails site

Facebook link preview not showing for a phpBB3 forum post

Why are my models not showing up in django admin site?

CSS background image not showing up in my deployed site

Facebook post embed renders but isn't showing up

I have one person in a dataframe that keeps showing up as \ufeff in my dataframe when I print to console

Blog Post Title isn't showing up on shared link

my site page/post can not visit, showing error

How do I set up LAMP without the forbidden message when viewing my site?

extra numbers showing up on my axes when i do multiple subplots in matplotlib

my printf isnt showing up when handling sigaction until i exit

Why is my Firebase Realtime Database data showing up out of order when I use a listener?

Why is my data that is coming from apollo server not showing up when I refresh the page?

Why isn't my Python tkinter popup dialog showing up when I use grid instead of pack?

Link preview not showing when posting to Facebook page via Graph API

Unwanted underline shows up on my header's link when I move the mouse over it