Topic-icon Opengraph override

Active Subscriptions:

None
14 years 3 weeks ago #22750 by antoniostarace
Hi, I hope you can help me with this strange problem.

I set the default OpenGraph and works just fine, title, image, description, url...
I tried to set a local override for a page but I can't figure out what's wrong with it. I need dynamic values for my tags so I set php code for title, image and description, but when I share the url on facebook it doesn't work and shows me the default values.
The strange thing is that in the html source of the page the tags are correctly overriden with dynamic values (except for image which appears twice, override one and default one).

Thank you.
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22761 by alzander
Replied by alzander on topic Opengraph override
Facebook doesn't login as any 'user' on your site. They actually don't even see the tags when the user visits the page. They are like Google, and will visit your page randomly throughout the day to see if anything changes.

Therefore, if you're setting the tags dynamically for each user, but the URL is the same, then Facebook won't see the dynamic tags.. just the defaults or whatever normally appear for all users.

Hope that makes, but if not, or the URL is actually changing, but the tags are always the same on each URL, then let us know and we'll do what we can to help.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 weeks ago #22797 by antoniostarace
Replied by antoniostarace on topic Opengraph override
Thanks for answering. I'll try to explain better.

Defautl OG tags are perfectly ok.
<meta property="og:type" content="website"/>
<meta property="og:title" content="Italiacosplay"/>
<meta property="og:image" content="www.italiacosplay.it/images/italiacosplay-square.png"/>
<meta property="og:site_name" content="Italiacosplay"/>
<meta property="og:description" content="La Community dei cosplayer italiani. Nuovi amici, foto, video, eventi, gruppi, notizie e tutto ciò che è legato al mondo del cosplay."/>
<meta property="og:url" content="http://www.italiacosplay.it"/>
<meta property="fb:app_id" content="128656463926234"/>
<meta property="og:locale" content="it_IT" />

When I add overrides to pages they are overridden by local tags so, if i look at page source it shows:
<meta property="og:title" content="Profile at Italiacosplay"/>
<meta property="og:image" content="www.italiacosplay.it/images/avatar/USERAVATAR.jpg"/>
<meta property="og:description" content="This is a description override..."/>
<meta property="og:url" content="www.italiacosplay.it/USERPROFILE"/>
<meta property="og:image" content="www.italiacosplay.it/images/DEFAULT.jpg"/> og:image appears twice (this is strange)

Og tags are correctly overridden, but facebook doesn't read them. I tried also the Linter, refreshed many times, but no luck. Just once it showed what I want, a local override, then again default values.

Do you think I should make a live override so you can see directly on my website?

Thank you.
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22802 by alzander
Replied by alzander on topic Opengraph override
Yes, please make it live. I'm not sure how you're testing with the Linter if the overrides aren't active in the first place.

For most tags, the overrides will be the only one displayed. However, for images, having multiple inserted is acceptable, and the first (the override) is what will be used by Facebook for most actions.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 weeks ago #22807 by antoniostarace
Replied by antoniostarace on topic Opengraph override
I tested and since it did not work as expected I disabled overrides.
I'll try to make a live test and see again what happen.

But you're perfectly right that facebook can't login as user. If a user has the profile visibile only for friends or users, facebook can't retrieve the data to build og. Maybe I could limit to profile avatar and username... should be enough to better customize the sharing.

I'll write again when ready with live test so you can see.
Thanks again for now.
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22811 by alzander
Replied by alzander on topic Opengraph override
Sounds good, and good luck!

Alex
The topic has been locked.