Is it possible to get a translated location field of a page via the Facebook API?
For example:
http://graph.facebook.com/fac.ciencias.ul?fields=location
That returns the city in English ("Lisbon").
Even this:
http://graph.facebook.com/fac.ciencias.ul?fields=location&locale=pt_PT
(specifying the locale 'portuguese') has no effect.
What I would like is to get "Lisboa" (In Portuguese - pt-PT) instead of "Lisbon" (English).
this cannot be translated. You should have a look at the Facebook Page of this University and click the Info link. At the info page you will see that someone entered the address in English
Regards
Michael
Related
I'm trying to find people either from particular city or who live in that city. Is there an API for this purpose?
When I use Facebook page, I can type in "People who live in Rome, Italy" (which is translated to URL https://www.facebook.com/search/115353315143936/residents/present) and it shows me all people who currently live in Rome. Using web page I can also search people by name and then add additional filter by city.
Can I do something similar with Graph API?
You can only search by name with the API: https://developers.facebook.com/docs/graph-api/using-graph-api#search - there is no way to get the same kind of search than on facebook.com.
you can add center and distance in the query
this comes from the documentation, you can change the type to type=user
GET graph.facebook.com
/search?
q=coffee&
type=place&
center=37.76,-122.427&
distance=1000
I have a website that supports few languages. Page detects and displays respective language based on browser settings (user can select desired language too).
Now id like to share this website with Facebook share.
According to Fb documentation i need to set a number of meta fields for needed language.
How can i detect a language Facebook is trying to scrape my website for? I was trying to use query`s fb_locale parameter, but it does not seem to pass this one with needed language.
Any ideas?
According to Fb documentation i need to set a number of meta fields for needed language.
This was never available for normal posts/shares in the first place, only for Open Graph stories - and for those it has been removed with API version 2.8, too.
https://developers.facebook.com/docs/apps/changelog#v2_8_deprecations
There is no way any more to do what you want.
I'd like to obtain a list of pages liked by a page
using Facebook php api but I can't find how to do it.
You can obtain this info if you know the id of a page:
https://www.facebook.com/browse/fanned_pages/?id=11...5
I've searched here but there's no mention to fanned_pages:
https://developers.facebook.com/docs/graph-api/reference/page
You should be able to use
/{page_id}/likes
and not
/{page_id}?fields=likes
Compare the output of the CocaCola page
https://www.facebook.com/browse/fanned_pages/?id=40796308305
vs.
https://developers.facebook.com/tools/explorer?method=GET&path=40796308305%2Flikes&version=v2.4
See
https://developers.facebook.com/docs/graph-api/reference/page/likes/#Reading
https://developers.facebook.com/docs/graph-api/reference/v2.4/object/likes
I have a site, registered as an app on facebook (with fb login). The site is in English, and has og:title og:description app id etc in the meta for the pages.
If people Like a page on the site, the description and title is nicely put on their timeline.
But, if they use Facebook in Dutch, they get the title on their timeline, but the description of the article they shared is replaced by 4 times "niet beschikbaar" (that means "not available")
I tried Facebook in German, but there the English description is used....
Is this a Facebook bug? Or is it me? And why only (as it seems) the "error" for fb users using Dutch?
I do have the same issue. The tools/debug lint from facebook does not see any errors.
There is a bug reported, see:
http://developers.facebook.com/bugs/326334460804515?browse=search_51130494eb59c1a06817175
There is no solution there, hope there will be soon.
More information:
Aggregations
Some components of the Aggregations are translated by Facebook, and others are translated by your app.
In general, objects are translated by your app, and strings associated with actions are translated by Facebook.
Aggregation
An Aggregation's title and all of its caption text are translated through the standard Facebook Internationalization process. References to object title and object descriptions are translated by your app.
Source: https://developers.facebook.com/docs/technical-guides/opengraph/internationalization/
I really think it is a bug in the translations.
Greetings,
Kevin Hoekman
I created a facebook app. It's in English. However I need it to be displayed in German (only if possible) by default. I went through the facebook manuals and, unfortunately, I couldn't find it.
Your thoughts?
UPDATE: Let me show what I want.
I (as an author) need it to be displayed absolutely in German, even any standard facebook label. I already set local to Deutsch (Setting->Advanced->Locale) but it's still in English.
Couldn't find what?
http://developers.facebook.com/docs/internationalization/
Added for question update:
Facebook:
If you're rendering a social plugin in an IFrame, Facebook
automatically translates the text because it's based on the viewing
user's locale.
If you're using XFBML, you need to load the JavaScript SDK in the
appropriate locale for your site. For example, if your site is in
Spanish, reference this script:
//connect.facebook.net/es_LA/all.js