Facebook OG tags not working

I have a simple application with rails 3 with the FB button. Ive used the FB OG tags to get an image of other relevant information posted during a similar transaction.

when I test my local server and after uploading the lie is laid out with the default image on Facebook and does not include other information from OG tags.

I looked at a few other questions about this, reviewed the instructions of the FB developers on how to use OG tags, and I'm sure I entered them correctly. Wondering if there is another step or something else that I am missing

I have tags in my head, as if

<!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 type

+10
source share
4 answers

Check out this link: http://developers.facebook.com/tools/debug

Enter the url or og tag here to get if something is wrong with your markup.

+23
source

og: url is the url of the object.

For example, if your object URL is http://yoursite.com/object.php , then the same should be your og: url

+2
source

A possible problem is that your image does not match the minimum size of 200 by 200 pixels. Try resizing your photo to fit these requirements, which actually worked in my case.

Hope this helps.

0
source

You must include the prefix in the HTML tag:

 <html prefix="og: http://ogp.me/ns#"> 
0
source

All Articles