using Facebook API in Metro JavaScript App


  • I can't get to use the Facebook API within a Javascript Windows 8 Style App; the Authentification doesn't seem to work; it seems that there is no communication between the login popup opened in IE10 and the metro app. Therefore the login page should stay within the metro app rather then opened in IE10.

    I tried to set the option display: iframe of FB.login but it then fails to load the login page.

    Has anyone managed to use the Facebook API within a JavaScript windows 8 app?

    Friday, October 19, 2012 1:51 PM


All replies

  • Take a look at the Web authentication broker. Facebook is used in the example code snippet in the WebAuthenticationBroker class documentation.


    Sunday, October 21, 2012 6:16 AM
  • I saw that before but I would then need to re-write the JS logic regarding the API myself. In my experience the Facebook API development is rather not stable and that's why I'd prefer to use the Facebook Javascript SDK. I'm not sure how stable the API itself without any SDK is. Thanks though.


    Wednesday, October 24, 2012 11:28 AM