Can you associate an OpenGraph object with a different url?

Thus, you need a public URL with meta tags to represent the object in OpenGraph, and one of the necessary meta tags is the URL property. When an action is published, it refers to this URL property.

Say I'm on http://mysite.com/A . Looks like I can't do this:

<meta property="og:url" content="http://mysite.com/B"></meta> 

Because Facebook will try to look at the meta tag root URL. Is it possible to associate another URL (mysite.com/B) with the given URL of the OpenGraph object (mysite.com/A)?

+4
source share
2 answers

You should be able to link to another URL. But all og:url means "go to this url and use tags instead." You can either

1) put all your tags on A , and then redirect users to B using JavaScript or User-Agent discovery;

2) post your content on A and do og:url to B

+5
source

@Paul, I still do not fully understand or appreciate your comment - apologies and thanks.

What I learned from a little more complicated one is that in the original FB message with the object URL in the FB message then it scans this page, receives META tags and if you have og: url defined it will crawl again . He crawls twice.

In my case, I pass a request that is parsed, but I did not set it again in the og url: therefore, when it crawled my page a second time, it did not collect the request variable that I need it to.

It was stupid of me. Thanks for the great answer.

Jim

0
source

All Articles