Facebook scraper seeing page as blank - facebook

I have installed Facebook like, share and comment buttons on my website and most of functionalities seem to be working ok, but after sharing a page on Facebook, thumbnail shows a blank page (clicking thumbnail takes user to the shared page, so there's no problem with that). Apparently this is how Facebook scraper sees my whole website.
I have determined that the probable cause is that the scraper (for some reason unknown to me) looks for website files in /var/www directory of my server, while website is located at /var/www/websitename/web. I have no idea what causes this, nor was I able to somehow direct Facebook scraper to correct path. What can I do to make everything work properly? I am using Debian+Apache+ISPConfig, website runs on Joomla!.

And the problem is solved. It was not SSL issue, nor any bug with code on my site. The problem was with Apache virtual host being configured for xx.xx.xx.xx:80 and xx.xx.xx.xx:443. Changing that to *:80 and *:443 automagically solved every problem Facebook scraper ever listed. Leaving this answer in case someone ever needs it.

Related

Facebook 404 file or directory not found

I have an e-commerce website and I want to share a link on my Facebook profile.
When I do I get a 404 - File or Directory not found even though the URL is working properly when you click on it. Below is what I see exactly:
I have tried:
To post the URL with https:// or without
https://developers.facebook.com/tools/debug/og/object
https://developers.facebook.com/tools/debug/sharing/
None of these solutions work!
The Sharing debugger shows this error:
But I don't understand how the error is legit since I have the parameters it's asking on my Page's Header tags.
What exactly is wrong?
I had the same problem at some point and the issue was that the team who manages our server had blocked the bots of Facebook and other search engines from entering our website and they forgot to undo this! Have a look if this is the reason in your occasion.

Bad HTTP Response code; Facebook likes don't post to facebook

I've created post-specific like buttons on my wordpress website. They appear to work on my site and record likers etc, but nothing posts to facebook. I've tried several wordpress plugins. and all gave the same result. Twitter is working just fine. Upon debugging in the facebook open graph, I get "Bad Response Code URL returned a bad HTTP response code." (more info in the debug link below). What am I missing? Thanks in advance!
The posts can be viewed at http://www.nebulusentertainment.com/news.
You can check out my attempt at debugging here:
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.nebulusentertainment.com%2Fjust-around-the-corner
Despite the page URL loading in the browser, they are loading with a status code of 500 - Internal Server Error; which Facebook will reject. Since you are using PHP, the fastest solution may be to turn error reporting on, and display errors on. Or take a look at your logs to see what's causing the 500 error.
You can see that your page quits outputting code are about line 328, which looks like it may be an error in the wordpress theme files somewhere (maybe single.php?).
Hope this helps.
The other reason would be, Facebook cannot access your webpage. probably because of your DNS entries or your server is behind a firewall for example your company LAN. Solution: Fix your DNS or Firewall blockages and make sure public social medias like Facebook has access to your sites.
I had the same issue, but after I disabled my cache plugin "W3 Total Cache" everything worked fine .

Facebook shared links not opening (Not redirecting correctly)

I have been in a problem and after hours of searching find nothing useful to counter it. I have a website, and that website has RSS feed attached to facebook page. As I post the content to website it also appears on facebook page. But I have people complaining on my page that my posts don't open when they click the link to read the details. Since I am a Chrome user and didn't notice this happening for months. But as I checked it through firefox and Internet Explorer, I found the links shared actually don't open with these browswers. They only work in Chrome, means they are properly redirected in chrome browser and not in firefox and IE. Whenever I click on links of posts on my page through IE or firefox the url does not simply redirect to my website and I get to see nothing as if I am not connecting to Internet. When examining URL I see this:
http://www.facebook.com/l.php?u=http%3A%2F%2Fbit.ly%2F112NVO9&h=EAQHDgTUv&s=1
Which shows that facebook is not redirecting the links properly.
Moreover I also use link shortening service bit.ly to shorten my shared links. I have checked same problem exists even if I don't shorten my links. And I checked I am not alone, even the tech giant website mashable.com links also don't open in IE and FF from facebook, they only open in Chrome.
From mobile phone the links don't open (redirected properly) even in chrome.
Can anyone tell me what is the issue? Nothing much is written about it on Internet as no once has faced this problem.
P.S: I have checked from different systems, the problem persists.
Thanks for your help.
I would be more nice, if you mention What is your Actual Link and where is it going. Normally this happens due to Virus.
I have clicked the Above Link and It Followed me to http://www.pakistanplacement.com/2013/06/jobs-in-oracle-corporation-territory.html Blogger page.
This worked same on IE, Mozilla and Chrome.
If you are viewing different Results on Different Browser, Your Browser might be victim of Adware. So Try to scan your Computer and check the Add-Ons installed in browser.
Hope it helps,
John Bhatt
I just found this http://goo.gl/WA2YyE url on a www.facebook.com/RecruiterPk and it redirects me to http://www.recruiter.com.pk/job/ and works absoltly fine.

"Like" Button is liking an older version of my url

The URL of my website was recently redirecting to another site who happen to have their own Facebook profile.
I have just uploaded a website to that URL consequently stopping the redirecting.
I have placed a "Like" Button on this website but it is liking the site my URL was once redirecting to and not my actual URL.
Anyone have an idea of how I can make it so its liking my URL instead?
The code definitely includes my URL and not the other one, I have cleared my cache and so on, I have re-uploaded the Like Button several times with different methods all to no avail.
Would really appreciate if someone would be kind enough to help,
Thank you.

Facebook url randomly unreachable

I'm sure anyone who has worked with Facebook has encountered the url unreachable problem with the comments plugin and alike.
I managed to get around this initially by making urls go to the facebook app page rather the hosted page, figuring facebook would be able to find itself, and ammended the url with a query string which could internally redirect them to right content. For example "app.facebook.com/myApp/?myAppP=videos&myAppId=0001" would first of all load the facebook app page then redirect the iframe to show the videos page and play video 0001.
This worked great at first but seems to have become a little unpredictable. I have a list of different videos, all of which use the same url except that the "myAppId" is different so the correct video is loaded. However whilst the "comments" and "like" plugins work fine for about a 1/3 of them, the other 2/3 show the "url unreachable". I can see no correlation between the urls that work and those that don't. It seems completely random, but it is always the same one that do and don't work.
This has got me completely stumped. Any ideas?
try to disable sandbox on app settings