1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How the heck do i get the Facebook like button Og properties to actually work?

Discussion in 'Facebook API' started by applesfaceman, Sep 17, 2010.

  1. #1
    Hi I have the facebook like button on my website right and im using the og properties and when i Like it, it just says Mike Likes ETC ETC ETC, its does not say Mike Likes "What i put in the og tag"

    and the og:image i have up does not seem to have any effect either.. right now im using the iframe, but before i used the javathing and the thumb nail was taking off a random picture of my site

    my site is, (contains sexually suggestive content at the moment)
    barrio.....girls.....com obviously without so many dots, and no space. sorry dont wanna seem like im spamming forum
     
    applesfaceman, Sep 17, 2010 IP
  2. Ratty

    Ratty Active Member

    Messages:
    565
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    95
    Digital Goods:
    1
    #2
    Did you make sure you included the xmlns call in your html tag to the og schema? Like this ...

    <html xmlns:og="http://ogp.me/ns#">
    HTML:
    For more info see

    http://opengraphprotocol.org/
     
    Ratty, Sep 18, 2010 IP
  3. applesfaceman

    applesfaceman Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    facebook had some other stuff to put in the HTML tag area.. i dont know if i need it all or just one.. im confused
     
    applesfaceman, Sep 18, 2010 IP
  4. Ratty

    Ratty Active Member

    Messages:
    565
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    95
    Digital Goods:
    1
    #4
    Ratty, Sep 18, 2010 IP
  5. applesfaceman

    applesfaceman Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    iv followed those docs as accureatly as possible, and it dont work.. but im about to change over the site anyways finally to wordpress so ill have other tools to work with. thank you
     
    applesfaceman, Sep 18, 2010 IP
  6. Ratty

    Ratty Active Member

    Messages:
    565
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    95
    Digital Goods:
    1
    #6
    I took a look at your source code and it may not be working due to a couple of invalid entries in the meta data.

    Firstly the type should be one of the defined types given in the docs. You have it set as 'Adult Site' which is not a valid type. It should be set as just 'Website' as follows.

    <meta property="og:type" content="website"/>

    Secondly your url for your site does not include the http:// in the url. Your just reads www.*********.com. It should be http://www.********.com as follows.

    <meta property="og:url" content="http://www.**********.com"/>

    Good luck with the wordpress stuff. Check out the following plugin, it should take care of all the Open Graph meta tags for you.

    http://wordpress.org/extend/plugins/opengraph/
     
    Ratty, Sep 18, 2010 IP
  7. applesfaceman

    applesfaceman Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ah damn i tried it on the url listed above barrio....girls----.com/index1.html and it still does not work, the thumbnail display on FB activity is the picture of the media player scroll bar picture i have on the site, and it uses an OLD page title i had the other day.. wth.. man this is crazy
     
    applesfaceman, Sep 18, 2010 IP
  8. Ratty

    Ratty Active Member

    Messages:
    565
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    95
    Digital Goods:
    1
    #8
    The other thing to know is that Facebook heavily caches a lot of things so if you tried it initially with the og tags missing or incorrect it may take a while for them to recrawl your page and correct the images and other meta tag information. Even if the tags are correct now it will still show up wrong on Facebook for a while. The best way to test it is to create a fresh page you know hasn't been crawled by Facebook and see if it works with that.
     
    Ratty, Sep 18, 2010 IP
  9. applesfaceman

    applesfaceman Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    oh god.. thats really kind of lame.. i mean caching is cool but i cant believe iv been doing all this and its probably just caching.. i had no idea. guess its a waiting game now. thank you Ratty! i appreciate your efforts very much!
     
    applesfaceman, Sep 18, 2010 IP
  10. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #10
    I've found that Facebook doesn't update things right away. There seems to be a short delay between the first LIKE and Facebook fetching the page to find the <meta> elements.

    I didn't even read the documentation, I just glanced through the docs looking for code snippets then read the bits of text around them. I'm using an HTML5 doctype and I'm not using any namespaces in my <html> element. Because of the way my pages are setup, Facebook finds everything but my image using the <title>, <h#>, and first <p> elements on the page. Other than an <iframe>, the only Facebook-specific code on my page looks like this,

    $ob_image = "<meta property='og:image' content='http://flipaq.com/{$row['image_path']}'/>";
    Code (markup):
     
    joebert, Sep 19, 2010 IP
  11. applesfaceman

    applesfaceman Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    well it finally works for me, i imagen the things i fixed plus the waiting for facebook to update cache did it, only thing now if anyone can help , how do i get this to register with an app on facbook like so i can see how many people liked it? without going to the page and looking that way
     
    applesfaceman, Sep 20, 2010 IP
  12. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #12
    I forgot what the tool was called before. Facebook has a tool called "Lint" that will show you what Facebook finds for each field as well as where it found each piece of information in the page.
    http://developers.facebook.com/tools/lint/
     
    joebert, Sep 20, 2010 IP
  13. applesfaceman

    applesfaceman Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    ahh what happend? i had it working i didnt change nothing.. now all the people who liked it, the number changed to 0! now when i try and like it, it asks me to leave a comment, like normal, but before i can type it auto unlikes it and dont allow me to comment.... wth happend??????? HEEEELP!!
     
    applesfaceman, Sep 24, 2010 IP