I have a simple rails 3 app with a FB like button. Ive used FB OG tags to get the image other pertinent info posted during the like transaction.
when i test on my local server and after uploading, lies are posted with Facebook's default image and doesn't include other info from the OG tags.
I looked at few of the other questions on this, reviewed FB's developer instructions on how to use the OG tags and i'm certain I've entered them correctly. Wondering if there's another step or something else that i'm missing
I have the tags in my head section like so
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>my title</title>
<meta property="og:title" content="My Site" />
<meta property="og:site_name" content="My Site" />
<meta property="og:url" content="http://www.mysite.com/"/>
<meta property="og:image" content="http://www.mysite.com/assets/image.png"/>
<meta property="og:type" content="ecommerce"/>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= favicon_link_tag "/favicon.ico" %>
<%= csrf_meta_tags %>
body stuff
This basically means that the OG tags or Open Graph tags that the Facebook wants are either wrong or is missing. You can verify the issues through the Open Graph menu on the Facebook Debugger. After going through the issues, the easiest way to fix them is by using the plugins like Facebook Open Graph or Yoast SEO.
Just go to Page Settings > Social Image > Upload. If you need to add other OG tags and customize the default settings, go to Page Settings > Advanced > Page Header Code Injection. Read the following section on adding the tags manually and copy-paste the code there.
If you have implemented OG tags in your website and you want to check them. You can go to smallseotools.com and use the OG checker tool. Once you navigate to the website; enter the URL of the website you want the meta og checker tool to check. It will run a check and if it finds the tags it will display them.
Check out this link: http://developers.facebook.com/tools/debug
Input your url or og tag here to get if there is something wrong with your markup.
The og:url is the url to the object.
For eg, if your object url is http://yoursite.com/object.php, then the same should be your og:url
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With