xtremee Posted August 3, 2010 Share Posted August 3, 2010 I've a problem with my website. I use the Facebook comment box in my website.I've found that when I open my website like with its link (www.teetradio.com) I see comments different that what I see when I open www.teetradio.com/index.phpI dunno why! Anyway to solve this issue !! Link to comment Share on other sites More sharing options...
VideoRipper Posted August 3, 2010 Share Posted August 3, 2010 I'm not an expert on Widgets, but the FaceBook comment-widget sees both URL's as different addresses (while they actually point to the same page).When you right click the widget and have a look at it's properties, you will see that one has a parameter-list like:[...]&xid=http%253A%252F%252Fwww.teetradio.com%252Findex.php[...]...while the other has:[...]&xid=http%253A%252F%252Fwww.teetradio.com%252F[...]so both effectively have a different XID. I'm not sure how you can force the widget to use the same parameter-list forboth "Addresses" (you could use frames to force it, for instance), but like Isaid, I never work with FaceBook (or widgets in general), so I can't be ofreal help here, sorry. Also inspect your code, since there are a few errors in it; the first one beingsomewhere at the top:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><!-- Fav Icon for Page --> <LINK REL="SHORTCUT ICON" HREF="http://www.teetradio.com/home.ico"><!-- END of Fav Icon for Page --><style><!--p{font-family:arial,sans-serif}--></style></head>[...]</head>(There are 2 </head>-closing tags...) Greetz,Peter. Link to comment Share on other sites More sharing options...
xtremee Posted August 3, 2010 Author Share Posted August 3, 2010 Thanks for reporting the two closing tags.When you right click the widget and have a look at it's properties, you will see that one has a parameter-list like: I dunno how can I see that? Link to comment Share on other sites More sharing options...
VideoRipper Posted August 3, 2010 Share Posted August 3, 2010 I dunno how can I see that?Exactly like I said Now, don't ask me how to resolve your problem, I can only tell youwhat's going wrong Greetz,Peter. Link to comment Share on other sites More sharing options...
xtremee Posted August 4, 2010 Author Share Posted August 4, 2010 Thanks I've tried it using IE8but, Is there anyway do see this info using Firefox? Link to comment Share on other sites More sharing options...
VideoRipper Posted August 4, 2010 Share Posted August 4, 2010 There isn't any real need to have to see the problem with another type of browser(but I'm sure you could do the same with FireFox), you'll have to find a way tofix the problem. Somewhere in the php-script there must be something that links to this FaceBookwidget; you simply have to force this piece of code to always use the same xidor you could use a workaround with, for instance, frames, where you put the code containing the widget is in a certain frame that doesn't change addresses, whetheryou're using only the domain-name or a URL including the document-name. Just to give you a general idea about using frames:Rename index.php to index1.phpCreate a new page, named index.html, with this code:<frameset rows="*,*" border="0"> <frame name="main" src="index1.php" frameborder="0"></frameset>Make sure the server defaults to an index.html-page if an index.php-script could not be found OR use this PHP-script instead (saved as index.php):<?phpecho '<frameset rows="*,*" border="0">'. '<frame name="main" src="index1.php" frameborder="0">'. '</frameset>';?>TestGreetz,Peter. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now