Facebook Open Graph OG: Meta Tags - Works only sometimes? - facebook-like

I have a like button on my site, i have defined all the og: meta tags and its works for most of most pages, but doesnt for 2 other pages. Its using a template so its exactly the same code, how can it work for some but not all pages?
For the pages it doesnt work, it doesnt pick up the title, image, link or description, basically any of the meta tags information.
Working like button....
http://www.imoffonholiday.com/holiday.php?id=des_home&destination=faliraki
Not working Like button
http://www.imoffonholiday.com/holiday.php?id=des_home&destination=ayianapa
Any ideas?

One usual problem is caching. If you were testing and at some point had the wrong data in the metatags facebook will cache that info.
One simple wat to test if it is a caching issue is to add a random param at the end of the URL.
so www.yourpage.com/index.php?cacheBust=1

Running the Facebook Debugger often clears those kind of things up. It appears to refresh the FB cache when you do.

Related

Wall post shows "n/a"

I have a problem that's been bugging me for a while now. I have a page with a Facebook Like button on it. When the visitor clicks on it, everything is working as it should. The user first logs in her Facebook account, and the right information is showing in the little iFrame that pops up. It has correct headline, url, image, and the possibility to add some text to the post.
But once posted on Facebook, the wall post doesn't show the description, instead it shows four rows with the text n/a. How come?
Some additional information:
I have set the followwing fields in the head section of the html, and
the Facebook debugger tool scrapes the correct information: og:title,
og:description, og:image, og:url, og:locale, og:type
Also, it always works for me and some others when liking it, but not
when person X or Y tries to share it, so it's kind of sporadic...
I use the Facebook js sdk.
In the Facebook debugger tool I get this warning: fb:admins and fb:app_id tags are missing. These tags are necessary for Facebook to render a News Feed story that generates a high click-through rate. But I have read somewhere that this shouldn't be necessary in my case.
The description sometimes contains characters like Å, Ä and Ö.
Has anyone else experienced this behavior?
Thanks in advance!

Anyway of knowing if a tab app is loading in the new timeline?

Is there anyway to detect if the tab app is being loading in the new timeline or not? I got clients asking to upgrade my layout but not all of them have upgraded so it makes it hard to do that. If I had a way to detect this it would be perfect.
I managed to do that by looking for an album called "Cover Photos" on the album list of that page. Here's a sample:
http://graph.facebook.com/-page_id-/albums?fields=name
You don't need a token unless the page isn't published yet.
The problem with this approach is that some pages still don't have cover picture yet, but it's the minority.

How to get external URLs likes

I'm trying to get the list of all the pages that a user "likes", both Facebook pages and external pages.
I know that the facebook pages (such as http://www.facebook.com/DealExtremeFans) I can obtain them with the "me/likes" value from the Graph.
But for a page such as (http://mashable.com/2012/01/20/advertisers-this-is-what-an-nfl-fan-looks-like-infographic/) that has a like button (under the title) I don't see how to get those likes.
Is this possible? If not, are you planning on adding support for this any time soon?
Thanks
EDIT:
According to the response below, even though they are added via the "like" button they are really "Shares".
Now my question is, how do I get those shares? what's the graph for them? I tried "me/shares" but doesn't exist.
Is there a way?
Yes it is possible, but it looks like that URL only has shares:
Click here.
And here is a link to a tutorial for getting the data via jQuery.

Facebook comments plugin not displaying moderation link

I'm using the Facebook comments box plugin..I have many pages with different get urls (example.com/id.php?id=1,example.com/id.php?id=2), and I'm attempting to give each its own seperate comments box. Everything is working fine except I get a warning telling me to add the href to the like button so I did. The only problem is, now a moderation link doesn't even appear..Here's code
" href="example.com/example.php?id="> ...I also included all meta tags I'm 100% sure..
I figured out the problem..Basically, if the page requires a login of some sort to view the contents, Facebook's bots don't have access to the meta tags.Therefore, you should add the meta tags to the page that a non-logged in user would see..This really caused me trouble and I hope this helps someone!

Facebook Like Button Cache. Linter useless

Looks like an issue was closed related to the question I'm about to ask, so I wonder if I'm going to be skating on thin ice, but here goes. I feel like even though this is kind of localized by nature, it could be a useful example for other developers dealing with the Like button.
I seem to be having issues regarding the Facebook like button. The infuriating part is that I'm pretty confident I have everything setup properly, and even though the linter says "hey, this all looks kosher!" the like button fails to get the correct content and uses cached info from a different page.
Here's the case: referlocal.com. We serve daily deals, and list them right off the homepage. There can be one of many deals listed on that homepage, so obviously Facebook is seeing just one when it goes to take a peek at the root directory. Now, on the homepage, whatever deal your viewing has a FB Like XFBML tag with href and ref attributes set. Every page that displays a deal also has OG tags pointing directly to the offer view page. Deals can also be viewed on user pages. So, on these three paths:
/
/{username}
/offers/{city}/{title-url-alias}
a like button is included as well as OG tags that point to /offers/{city}/{title-url-alias}. For about 3 weeks, the button worked like a champ. But recently, it's been performing strangely. For any deal, regardless of the 3 locations, it always uses the information cached from the previous days "/" deal. Regardless of the OG tags or origination.
Here's the wildly confusing part. The Facebook Linter is supposed to recache the information on the page, right? Well, it sort of does. It picks up on all of the appropriate information set in the OG tags, but when you click the Like button at the bottom of the page, no dice, still uses the deal FB saw on the homepage from the day before.
I know this is probably killing my argument for localization, but check this out:
http://developers.facebook.com/tools/lint/?url=http%3A%2F%2Freferlocal.com%2Foffers%2Fdallas%2Fget-20-of-authentic-italian-american-cuisine-for-only-10-at-leggios-italian-ristorante-dallas
Regardless of the fact that the linter finds all the appropriate information, the like button at the bottom still is liking a deal FB cached from the previous day.
Any ideas?
I had this problem too. The linter caches things in a very weird manner - seems like the best thing to do is either to add a query string and change it every time, or just rename the file every time you're checking.