Facebook share button only works the first time - html

I am working on this website: http://www.annashome.com/site/index.php
I have a very strange problem. On each product's page I have a Facebook share button which works fine when using (or opening) it the first time but if you then go at another product's page and try to use it (share or just open) it brakes the URL (doesn't show title,description,image,etc.). I need it to show the title,image and desciption at all times.
If I clear cookies and try the button it works once again but not the second time on another product...
I have set all the attributes such as og:title, og:description, og:image and have checked the DOCTYPE but I still cannot figure out why it shows the correct info when using it for the first product but not the others.
I use addthis.com and have chedk it also. It's really bugging me.
I would really appreciate if you'd have some tips for me !
Thank you !

Actually, the facebook share button works as it should - without any problems. You probably have an url rewrite problem or only a basic setting in the admin menu needs to be changed. Every product you have can be accessed from two different addresses. For example:
http://www.annashome.com/site/index.php/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
In this case, if you share it, the link will be broken.
http://www.annashome.com/site/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
In this case, it will work.
You can also see, that the share counter doesn't have the same number.
Your site adds this to your address on every product: "index.php/". If you remove it, everything will work as it should.
Hope this helps.

Related

Extracted URL not redirecting

I am looking at the following site: https://www.lg.com/us/press-release.
I need to get a link to go directly to the computers tab, and it needs to be a url.
I extracted and tried: https://www.lg.com/us/press-release#press-list5 however this still redirects.
Can someone tell me what the URL is to go directly to the computer tab please?
Thanks
I don't think a URL is going to work. I believe there's some Javascript at work here.
Why?
Before/Unclicked:
Computers
After/Clicked:
Computers
So once it's clicked, the list item has the active class added and the aria-selected attribute set to true. So a URL with a bookmark doesn't look like it'll work.

OLD HTML Frames

I'm working on a project, where we are redirecting users to an external store in a different domain (we don't have access to that code). And I'm looking for a way to have a "thing" or anything to bring the user back to our main domain.
Remember the old framing system where you could click on an external link and you could have your info on top of the page and the content below, and you could click a "close this frame" link and it would be gone?
I remember Google used it for a while.
Right now that the only way that I have figured out to bring the users back.
does anybody remember that HTML tag or that method of doing it? I forgot what it's called.
Or if anybody has another idea on how to execute what I'm trying to achieve, I'm all ears :)
Don't you guys remember when you tried searching for something (back when yahoo was #1), and most of the results were in a frame that you needed to close because it was annoying, but most porn sites just redirected you to their site so that you didn't see the frame?
Iframe or a frameset with two vertically stacked frames.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/frameset
You give each frame a name and then you can use a target attribute on your links to specify in which frame to launch them.
It is enough to use something along the lines of
<a href="page.htm" target="_top">

How to link a webpage to itself without first knowing its name?

To link a page to itself (e.g. http://example.com/folder/ThisPage.html), we can simply create a href as such:
ThisPage.html:
Link
This works, but has the disadvantage of needing to be updated when the file name changes. For example, if the file name changes to ThatPage.html, our href needs to change accordingly to Link.
I'm looking for an alternative without that disadvantage. I've tried:
Link
Doesn't work as Link does, because it appends a "blank query part" (question mark) to the URL.
Link
Doesn't work as Link does, on some browsers (e.g. Opera).
How do we link a page to itself, without having to update the relevant portion when the name of the page changes?
Note: JavaScript not allowed.
Just use Link. Nobody cares about the question mark appended to the URL. It does the requirement and that is what counts right?
It's very simple, just leave the href="" blank. So that's how:
Click me to refresh page
But this is not necessarily a good idea, because the cache may not be cleared, and whatever you need it for, if the page has changed in the meantime the change may not appear despite the reload. Probably a better idea is the javascript code location.reload(); to take. But there are enough explanations on other sites, which is why I won't explain it here. You can of course also for example take a question mark (?), but this is unnecessary, actually not intended for it and can cause problems depending on the program.
Here is a short list of common hyperlinks:
Points to the root page
Link
Points to a file relative to the root page
Link
Points to a file relative to the current file
Link
Points to a file in the previous folder
Link
Points to a file in the second previous folder
Link
Points to a file in a folder below
Link
Points to the current file
Link
Points to a page with a different host but the same protocol
Link
I hope that my answer will help some people, because I found it via a search engine and saw that there is no correct answer. And it's my first answer here 😅
If you want it to go nowhere, you can use
link
But if you want it to reload the page, you'll have to go with JavaScript.
If you want to reload the page you could use the Meta refresh tag
http://www.w3.org/TR/WCAG20-TECHS/H76.html
If you want to reload the page, you really should take a look into javascript. It is the best way to do it.
Just do this:
This Very Site
Source: I saw this in the source code of Matthew Alger's website. Check it out for yourself!
Why not try ?
I looked some things up, and as it turns out, ./ refers to current directory.
You can just make a link to the same page.
Here ya go. Hope this is what you are looking for
Link

Facebook like working then not again

Ok I have checked all the other posts that are similar to this but none of them are truely the same.
I have a like button on my website. The page is created dynamically via a perameter passed to the page called "page"
find here;
http://dev.crosbylakeside.co.uk/watersports/index.php?page=watersports
Now on the home page of this section the like button works great. However it does not work on any other section at all!!
The strange thing is its essentially the same page. If you check my source code header info its always right. The facebook og data is also dynamic to simulate page changes and is working fine.
If you go to the dev bugs page and put in the url of my site it all checks out ok.
I have tried everything but I cant seem to get it to go.
Please help thanks
Looks like was a caching issue

Facebook Like Button with show_faces=1 only showing up to three avatars

I'm not sure how to debug this. I paste the code from Facebook as it is given to me including the option to show faces of those that like the page.
I've clicked 'Like' using multiple Facebook accounts (more than three) but I only see three faces, never any more than three.
I searched stackoverflow and the facebook support threads and haven't found much mentioning this.
Could this be a URL scoping issue? The URL for the Like Button is for page other than the one it is on.
If someone could simply recommend how to begin debugging this, I would be very grateful.
I have tried both the iframe embed and the fbml version with the same end result.
http://extremelypublic.com/of/privacy#exposure
I've had this happen when there aren't very many Likes (less than 300-500)?