Localized OpenGraph meta information? - facebook

I have a site that is available in multiple languages (English and German for now). The landing page / automatically redirects the visitor to either /en or /de. There are social buttons on the page that however use the / url so that numbers (Facebook like count or Google +1 count) does not segment for different languages.
When sharing a link to the site on Facebook, buttons are configured to share the / page (which also counts as a like since the visitor shares the same url as the like button).
However, if somebody just shares the site url manually, Facebook posts the the English description on his wall, even if the visitor gets the German site.
I guess, Facebook caches OpenGraph information about a site. Is there a way to tell Facebook localized OpenGraph information so that visitors can post links to the site having automatic description in the correct language?

Related

Target newsfeeds of individual Facebook Page followers?

I have a site where users create posts and customize a feed of content that they're interested in - something like a Twitter list. I would like to be able to push that content (and only that content) to them inside Facebook for possible inclusion in their newsfeed.
If the users are logged into my site using Facebook, and they have additionally liked my site's FB Page, is this possible?
I have read about post targeting, but that works at the demographic level. This content feed is per-user.
No, you can not target content on your Facebook page to specific, individual users.
You can target certain demographics or users with certain interests – but not individuals.

Associate Facebook Page likes with website

I have a Facebook page with 50K+ likes on it and a separate website, when analysed with Moz, that only has a few hundred likes (which I believe are coming from WordPress on the site's blog).
For a number of reasons, I would like to associate the two with each other, so is it possible to link my FB page likes to website?
At this stage I don't want a FB Like/Share/Recommend, and simply just want my Facebook page and its like to be representative of my website. I can understand why this might not be possible, but I just thought I would ask.
If it it's not possible (like this post Facebook Open Graph : Associate Website with Facebook Page indicates) to do with Facebook page's pageId, is there way I can associate a FB app (in the form of a website) with my existing facebook page without having to make a new FB page?
There is no way to combine/link Likes of an external Website with the Likes/Fans of a Facebook Page.
About associating an App with a Page: You can install an App on a Page, it is called "Page Tab" or "Page App". Of course you don't need to create a new Page for that, you can install an App on every Page you own. You can also use that exact same App for something else on your external website. Check out the "platforms" in the App settings.

Is liking an activity is the same thing as liking a business on facebook?

2 Part question
1) So I am trying to figure out the difference between "liking" something on pinterest vs "liking" a business. Is it the same thing?
2) I want to implement people "liking" different pages on my website (such as pinterest) and track which page has the most likes. Do I have to save and track that in my database or facebook API will let me see which pages has most likes based on some criteria?
TLDR: Yes, they are the same thing.
A Facebook "Like" is what is an Open Graph Action. Liking something from within the Facebook web interface or via one of the Facebook plugins allows an easy implementation path. Pinterest uses a custom script that initiates a built-in like action.
Both types of like require there to be an object with open graph metadata that Facebook can scrape to get the information that will be shared on a timeline. That metadata could be served by Facebook on an internal page, or by an external page.
As for getting the number of likes, yes you can. Each canonical open graph URL gets an id within the Facebook system. This includes objects within the Facebook system.
So, the Pinterest Facebook page has an id of 253591661347566. You can find this by querying https://graph.facebook.com/pinterest?fields=id
The Pinterest home page has an id of 185629821512802 according to https://graph.facebook.com/http://pinterest.com?fields=id. (Not urlencoded for clarity). You could replace http://pinterest.com with any other url, and get that pages id.
For any object that you know the id, you can get information on the number of likes it has by adding likes to the fields querystring.
If you've marked up your pages with an app id and admin information, you can see all of this and more through Facebook's Insights.

Facebook scraper. Can I reply with different content for it?

I'm developing an url shortener and the current specification requires to avoid Facebook from scraping those links and instead an integrated scraper will do that and hand over the og meta tags to Facebook.
Is there anything in Facebook terms that doesn't allow me to reply to its scraper with different content (e.g. an empty page with opengraph meta tags only) from what a regular user would see?
Thanks in advance.
I just did this on my site.
I am redirecing non-mobile devices to another page but want the facebook scraper to get the content a mobile device would get.
This is the User Agent I get:
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
so matching against a regular pattern like this should detect the facebook scraper.
/^(facebookexternalhit.*)/
As mentioned above, this user agent can be spoofed easily which, in my case, doesn't matter.
Only problem could occur if facebook changes the user agent of their crawling script.

Sharing links behind a walled garden on Facebook

I have website that will both post to a user's Facebook wall, and allow him/her to share links through private Facebook messages.
The links that we would like to share can be behind a walled garden, meaning you'd have to be logged in to our site to see them. The problem is Facebook ends up sharing the redirect link instead of the original.
What is the correct way to handle this use case?
You need to generate "fake" pages with the og meta tags, and with a meta refresh, url tag, or some script with document.location. This pages should not need log in, and must contain only the shared information.