I have set the meta tags as shown in the example
Everything works fine, except the og:url tag. Before i hit the share button, it's displaying the correct url as set in the tag. But after I hit the share button, the shared message display the domain name of the site instead. So for example if I set the og:url as www.helloworld.com/hellouniverse, the shared message (this can be seen after i hit share) will instead display www.helloworld.com.
Does anyone probably have any idea how to fix this ?
Thanks
As far as I know, this is the default behavior of facebook, they take the domain name from the og:url parameter and display it.
I've tried several approaches to deal with it, but eventually came up with nothing.
Because it is their internal script, there isn't much you can do about it.
Related
Hey this is probably a stupid question. Our organization is currently working on a replatform and we are almost done! At this point we're just fixing tiny bugs, like this one.
If I were to copy/paste this URL into Facebook, it would supply the correct title/description for the article automatically: http://prod-www.startribune.com/isle-royale-wolf-population-plummets-to-three/300340911/
However if I were to copy/paste THIS url into facebook, it would choose the first text it encounters after the start of the section of the page it scrolls to. http://prod-www.startribune.com/isle-royale-wolf-population-plummets-to-three/300340911/#comments
The only difference in the URL's is the addition of #comments to the end.
What I'm wondering, how would I have the #comments URL provide the same title/description that is pulled into facebook that the page does when you go to it sans #comments fragment?
Do I just need to redeclare the meta tags in that part of the page?
The issue seems to be that there really isn't an issue. All of the URLs generated for canonical and og:url are pointing to what, ultimately, will be the home for the articles, but currently those URLs don't exist yet. I have a feeling this will be a non-issue once the replatform code goes live.
We have a page with several share buttons, each pointing to a different content and should be shared on user's wall.
The problem is that, we wish the href generated to always point to:
http://example.com
We tried to make a og:url for Facebook to point to:
http://example.com/facebook/articleId
But the only way it seems to work, is if, the:
http://example.com/facebook/articleId
also stays on the shared page.
Any workaround for this?
I'm a rather beginning programmer trying to get the XFBML 'Like' button to work on my site correctly... I chose the XFBML so I wouldn't have to manually type in the URL for each button- I use a lot of templates and want to be able to update everything quickly and easily.
But about half my pages seem to share a like button- and strangely, the other half each have their own individual like buttons, even pages that use the same template as the first set. How do I fix this? I've seen some stuff for blogs about automatically generating different like buttons, but I'm not sure it'll work because this a regular old site and every page is a different URL. I've searched all over the place online and I haven't seen anyone else with this problem. The site is at www.millerandcampbell.com if that helps.
Thanks in advance!
In the future, plase use https://developers.facebook.com/tools/debug to debug problems like this.
It clearly shows that f.e. for the page http://www.millerandcampbell.com/rental.html you have given your base address http://www.millerandcampbell.com as value for og:url – and of course the like button respects that value, and therefor likes the latter URL.
If you don’t want that – then set og:url to the actual address of your sub-pages.
I've been reading guides and examples for a long time (hours) but I can't manage. I tried to use all html meta tag like title, description, and og:property. Also tried to use the link sharer and also to create a new blank page with just the info I want to share to facebook in order to test. Also I tried to generate an random url in php so to have always a different url variable (the url to share and also the url of the main page containing the script). I also grabbed (url linter) a lot of time the url to clean the cache of facebook. It always give me the title of the site domain as title or the url itself as the shared title and description. I don't know what to do.
The main web site is from joomla. In the code of index of joomla I put a php include if the url has the variable "articolo" id. This incuded php page has regulat head body etc. So maybe I facebook check the main meta of joomla first? So now I tried to open a popup with just the page for sharing. Look here: link
It's possible that the title is locked in, meaning that after X number of likes Facebook doesn't allow you to change it anymore. Can you give us an example URL you're having issues with?
EDIT
Ok, now the link you provided shows some very interesting output. http://modernolatina.it/wjs/index.php?option=com_content&view=article&id=96&Itemid=258&autore=6&articolo=6
First, you webserver, instead of sending back a 200 code, is sending back a 500 code.
Secondly the HTML your webserver is sending back has two HTML tags (Do a view source on the content returned)
Fix up those two issues and I think the linter will be happier with your page.
Test your page here:
http://developers.facebook.com/tools/debug
I have installed facebook like button with javascript solution.
I left the href attribute empty so it will use the current url for counting. It seems that right now , even after changing the href attribute , facebook is counting the like on my entire website.
Example:
1. domain.com/fb_url
2. domain.com/fb_url2
If you will like the first url , you will be able to see the likes on the second url.
Why not putting into the href attribute the absolute URL of the page? I guess this will fix the issue. This can be easily achieved in whatever language you use. Please post the code you are using so that we can provide further help.
If you used og:url tag, you although have to change it on each page.