Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook share link returning 404 redirect error when page exists

Sharing the following link in facebook is returning 404 error page information instead of the page details and link even though the page exists:

http://www.kentbusinessangel.co.uk/lucky-achieve-goals?sq=be-excited&src=fb

To try and fix the error:

  • I tried encoding the link to enable passing the & and ? correctly (didn't work)
  • I created a redirect from http://www.kentbusinessangel.co.uk/lucky-achieve-goals-be-excited/src-fb to the original url (which works when you use the url in the browser, but still only shows 404 error when sharing on facebook)
  • I created a static page at http://www.kentbusinessangel.co.uk/lucky-achieve-goal/fb/be-excited (again this page works in the browser but facebook says error 404 for this page too!)
  • I waited a day hoping that maybe facebook needed time to scrape the page again (he same problem continues)
  • I added metatags to the new static page and made the canonical match the url for this page just in case it would help (but it still shows 404 redirect error sharing on facebook):
<meta property="og:title" content="13 Lucky Steps to Achieve Your Goals - Be Excited">
<meta property="og:description" content="Get 13 lucky steps to achieve your goals! - Be Excited">
<meta property="og:image" content="../../images/numbers/circles/one.png">
<link rel="canonical" href="http://www.kentbusinessangel.co.uk/lucky-achieve-goal/fb/be-excited">

Does anyone have a clue why the facebook share information is being taken from my 404 error page instead of the url being shared and how I can fix it?

Edit: After posting this question the original link http://www.kentbusinessangel.co.uk/lucky-achieve-goals?sq=be-excited&src=fb worked on the facebook share! --- However, the other pages that are all set up through the same dynamic page are still not working and neither are the other work around links that I created in the steps above

i.e. http://www.kentbusinessangel.co.uk/lucky-achieve-goals?sq=effort&src=fb

Edit2: Would have been nice if posting the second link on here would have magically made that work through the facebook share too - but no joy - *confused*

Any help on this would be appreciated

Edit 3: Ok, the original link is back to not working on the share area as well as the other links - so back to square one -

Fix!! Seems that facebook scraped the pages when there was a redirect error and since then hadn't rescraped them.
Putting them into the delinter: developers.facebook.com/tools/debug rescraped the page and retrieved the correct information! After doing this new share links for these pages worked too! (so simple :s )

like image 577
Anne-marie Mumford Avatar asked Apr 08 '13 12:04

Anne-marie Mumford


People also ask

Why is my Facebook Page Link not working?

You might not be seeing the Facebook link preview you want because the info has been cached by Facebook. (Facebook saves the info from URLs and pages that have already been shared, for better performance.) So you just may need to force Facebook to clear the cache. 1.

Why does it say this page you requested was not found?

A 404 error is an HTTP status code that means that the page you were trying to reach on a website couldn't be found on their server. To be clear, the error indicates that while the server itself is reachable, the specific page showing the error is not.

What is a 404 redirect?

404s occur when a page is deleted from the site and the server, but links to the page and bookmarks still exist. When a user calls that page from the browser, the server returns a 404 Page Not Found. If the search bot gets a 404 a few times, it will deindex the page from the search results.


1 Answers

its simple

add the below meta code in Edit html place in blogger before <b:skin><![CDATA[/*

change the content what you want to be

goto https://developers.facebook.com/tools/debug/og/object/

past the link of blog there and scrap it

<meta content='TestedCodes' property='og:title'/> <meta content='Introducing Important basic codes which a programmer needs to know ' property='og:description'/> <meta content='http://www.testedcodes.net' property='og:url'/> <meta content='https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSN90lduXisEbSyVbU4SHa-vcRjQeSZZH7d8kY7AkX3L-f56dFhFw' property='og:image'/>

like image 84
billa surya Avatar answered Oct 30 '22 05:10

billa surya