Alex Rivera | Logout

Update Facebook Open Graph meta tag through JavaScript

Asked 2010-06-20T21:27:48.017
25

I'm trying to update the meta content of the Facebook's Open Graph title. I updated the content, but when it published the feed, it's still pulling the old information.

Example:

<meta property="og:title" content="Title 1"/>
    I managed to update to
<meta property="og:title" content="Title 2"/>

When I click on the Facebook Like, it's still pointing the title to "title 1".

How can I make it update?

Edit
Report

1 Answer

2

The meta tags are read by Facebook when shared (liked, etc.), so the JavaScript code might not work. You can test using the online debugger.

answered 2011-08-29T17:34:04.850

Your Answer