locked
WebAuthenticationBroker display wrong language at first time when login Facebook with locale parameter

    Question

  • Hi,

    We try to set the language of authentication page when launch WebAuthenticationBroker to login Facebook.

    According to https://developers.facebook.com/docs/opengraph/internationalization/

    We could set the language by 'locale' parameter when we send a request. For example: locale=en_US or locale=zh_TW

    From sample code http://code.msdn.microsoft.com/windowsapps/Web-Authentication-d0485122

    In program.js, we modify

    facebookURL += clientID + "&redirect_uri=" + encodeURIComponent(callbackURL) + "&scope=read_stream&display=popup&response_type=token";
    to
    facebookURL += clientID + "&redirect_uri=" + encodeURIComponent(callbackURL) + "&scope=read_stream&display=popup&response_type=token&locale=zh_TW";

    and launch WebAuthenticationBroker.

    We could find that locale parameter will not take effect.

    But, after click "Start over" button at the top-right of dialog, locale will take effect!

    IE 10 Metro could reproduce this issue, too. (With clean environment and specific steps.)

    But IE 10 Desktop couldn't.

    How to fix or workaround this issue?

    Thanks!



    • Edited by Sars C Wednesday, April 25, 2012 1:25 PM
    Wednesday, April 25, 2012 1:21 PM

Answers