Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7064009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:46:54+00:00 2026-05-28T04:46:54+00:00

I have a Website, which is Fully Ajax-Based (Hash Navigation). Is there a way

  • 0

I have a Website, which is Fully Ajax-Based (Hash Navigation).

Is there a way to refresh Open Graph meta-tags for ajax-based websites using Javascript?
(When I Click on a link, the Tags, and there values should Change)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:46:55+00:00Added an answer on May 28, 2026 at 4:46 am

    No. Open Graph markup must be present on HTML pages which are GETable with pure HTTP.

    This is because when a user interacts with an OG object (like, performs an action etc) Facebook will perform an HTTP GET on the OG URL, and expect to see OG tags returned in the markup.

    The solution is to create canonical URLs for each of your objects. These URLs contain basic HTML markup including OG tags.

    On requests to these URLs, if you see the incoming useragent string containing ‘facebookexternalhit’ then you render the HTML. If you don’t, you serve a 302 which redirects to your ajax URL. On the ajax URLs, your like buttons and any OG actions you publish should point to the canonical URL object

    Example:

    As a user, I’m on http://yoursite.com/#!/artists/monet. I click a like button, or publish an action, but the like button’s href parameter, or the URL of the object when you post the action should be a web hittable canonical URL for the object – in this case, perhaps http://yoursite.com/artists/monet

    When a user using a browser hits http://yoursite.com/artists/monet you should redirect them to http://yoursite.com/#!/artists/monet, but if the incoming useragent says it is Facebook’s scraper, you just return markup which represents the artist Monet.

    For real world examples, see Deezer, Rdio and Mog who all use this design pattern.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one website which is working on templates. in the template there is
I have some website which requires a logon and shows sensitive information. The person
I have a website which uses the custom 404 error handling in PHP/Apache to
I have a website which uses TinyMCE textboxes for editing. It works fine except
I have a website which uses PHP and HTML pages, I want to create
I have a website which sells a product to the user (downloadable). I am
I have a website which fetches information from RSS feeds periodically (well, currently manually,
I have a website which allows secure (ssl) file uploads and download. The site
I have a website which works with PHP on the server side. Users access
I have a website which uses Spring Security. I have realized that when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.