Hey Juhule,
Please review the information found at this link. Let me know if this answers your question. If not, we can certainly assist further. In the meantime, I hope your week is starting off great.
Hey @juhule,
Currently, the locale will only affect some of the text in the plugin (the Like Box widget, and the “story” text from Facebook – things like “Juhule added a photo”), however, Facebook recently added the ability to load multiple languages via their API using the locale setting – if the Facebook posts exist in more than one language. I’m actually planning to push out an update today (within a few hours here) which will allow you to choose the language using the “locale” setting in the shortcode. Eg:
English:
[custom-facebook-feed locale=”en_EN”]
German:
[custom-facebook-feed locale=”de_DE”]
Look out for an update later today, and then once you’ve updated let us know if you still have a problem with this.
Many thanks!
John
Just a heads up that I pushed out an update (version 2.4.4) which should now allow you to display feeds in either language using the locale setting as shown above. Note that this will only work if the posts have been created in both languages on Facebook, as it sounds like they have in your case.
Let me know if that works for you!
John
Thread Starter
juhule
(@juhule)
Hey thanks for your very fast feedback and the changes!
Currently it is not working although I updated the plugin and I am using the locale-attribute as you wrote above. But I am not quite sure if the facebook-posts are written as you described. I have to check that with my client and will let you know when I get the answer.
If it is interesting for you, I am trying to get the stream for https://www.facebook.com/goalunitedlegends in both languages english and german.
Best, Jule
Thread Starter
juhule
(@juhule)
Ok got the answer – the client writes one post for each language. I have to figure out if I can get the stream in german by another url or adding a lang param to the facebook-url 😉
Hey Jule,
If the posts have been created on Facebook in both languages then you can access each language by using the “locale” parameter in the API URL, like so: https://graph.facebook.com/goalunitedlegends/posts?access_token=XXXX&locale=de_DE. This is what our plugin does when you set the locale setting, however, as you can see from that link, your Facebook page doesn’t appear to be returning any German posts. Is this the process they used to create the German posts?
Also, note that after setting the locale in the plugin shortcode you may need to clear the plugin cache in order to make a new request using that locale. You can do this by just clicking “Save Changes” on the plugin’s main Settings page. This will only work if the Facebook page actually has German posts available in the API though.
John
Thread Starter
juhule
(@juhule)
Hey John,
thanks for the link to test the api call! That helps alot. It really seems that the posts are written in any other way than described at the link you posted. I have to discuss this matter with the client 😉
Great help and great extension!
Best,
Jule
No problem, just let me know if you have any more questions 🙂
John