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.
Related
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.
This is the weirdest thing. I have very simple CF code that looks at cgi.HTTP_REFERER. Simply, it looks at referrer. It the link was clicked from outside our main website domain, it displays something. Otherwise, nothing happens. So, if someone clicks a link from FB and it goes to our website, it displays something. If someone clicked the link from our homepage on our website, it does nothing.
There is a specific link that when clicked from our homepage, the "does something" happens. I wrote out all the variables and the http_referrer shows https://m.facebook.com. I wasn't on Facebook when I clicked the link. I wasn't on mobile. I was on my main website homepage when I clicked the link.
Now, here's the only things I can imagine:
We have facebook commenting on that story page.
that URL has been shared on Facebook.
But, we share all of our stories on Facebook and they all have FB commenting so I would think if FB stored this information, I would be having this issue on all pages.
Anyone have any idea why this is happening?
As with others, my user_agent, remote_addr and an referer are all incorrect. I also see different remote_addr values depending on which browser I use. So whatever you are dumping, it is not the CGI scope for my request.
I suspect you have a function which handles the dumping of the CGI scope, it's in a CFC that's in a persistent scope and you have an unVARed variable in there somewhere? Or your page-caching (possibly on a front-side proxy?) based on browser, and the dump in the cache?
NB: on Opera and Safari I do not get Facebook as the referer.
I had links that worked before timeline, and since we moved to timeline, they don't. We are using the Facebook iFrame for our content.
What is going on? When we click on the link, it seems like something is blocking the browser from changing the page.
http://www.facebook.com/Activis?v=app_179997328701001
Edit : I'm still investigating that problem; One thing I should mention is that only links that go to another Facebook App don't work. The ones that go to something else than Facebook (A blog, Twitter and Linkedin) work fine.
TommyBs Wrote:
Is the target of the links the same frame? I find sometimes that facebook doesn't let you redirect to an iframe of facebook. E.g - Make sure you either set the link to target="_top" or make sure it is a full url of an app and not the app on facebook. Otherwise you're basically loading an iframe of facebook, with an iframe of your app within the existing iframe
Yup, putting a target="_top" on my links worked. Thanks!
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
I'm trying to add a facebook "like" button to my page, and it is appearing just fine. My problem is that once it is clicked by a user, it says "Like NUMBER" then resets as if the request was canceled or something.
The weird thing is that if I try to like a page using my facebook account it works, but I tried letting a friend like some content and this behavior appeared.
I created a facebook app, specified the site url with a trailing slash, and site domain. I used the app ID with FB.init, and with the open graph tags. I can't figure what I'm doing wrong here. Any help would be appreciated.
Sample page can be found at: http://wiseolive.com/en/doctors/3881-khalid-jamal-salaymeh
First, for the count to work correctly, Facebook needs to have access to the page (in other words a public page). Check your URL in the linter tool (https://developers.facebook.com/tools/debug) to ensure it can been seen by Facebook.
Secondly, ensure your og: tags are correctly setup. Once again, you can use the linter tool to do that.
Facebook like buttons will show this behavior until they have been scraped by Facebook. That scraping (facebook like docs) will occur every 24 hours, when an admin clicks the like button or the url is put in the url debugger/linter. From what I can tell doing that will solve the problem for that specific link, but not any others you may have on your site.
I don't know of a generic solution for dynamically generated pages unfortunately.