locked
Check for external application (facebook) authorization

    Question

  • Hi

    We would like to add an Facebook "recommendation bar" ,

    there is a possibility to check if user is already made login to Facebook in the device ?

    thanks.

    Thursday, August 16, 2012 1:53 PM

Answers

All replies

  • Logins are not device specific.  I am not sure what you are asking but this sounds like a Facebook API question.  Did you try Facebook forums?  I am sure someone else has done this before!  Here is a ref to that forum: http://developers.facebook.com/docs/authentication/

    -Jeff


    Jeff Sanders (MSFT)


    Friday, August 17, 2012 1:24 PM
    Moderator
  • let me clairfy it..

    we made authentication with facebook through the Web Authentication Broker ,

    And the result is  facebook token for the user.

    in order to save the user token for reuse next time, we use the following steps:

    1. create local file through "Windows.Storage.KnownFolders.documentsLibrary.createFileAsync"

    2. saves the token to local file through  "Windows.Storage.FileIO.writeTextAsync".

    3. read from the file  through (in the next time the user fire up the app) "Windows.Storage.FileIO.readTextAsync".

    The question is where its recommeneded to save text as token (in order to reuse its in the next login) ?


    Sunday, August 19, 2012 8:31 AM
  • Thanks for the clarification Tomer!

    You should not save in the KnownFolders.  The best place for you to save this would be with the application in the application local directory.

    You can user the readText and writeText methods easily: http://msdn.microsoft.com/en-us/library/windows/apps/Hh700820.aspx

    -Jeff


    Jeff Sanders (MSFT)

    Monday, August 20, 2012 11:59 AM
    Moderator
  • Thanks
    Tuesday, August 21, 2012 7:26 AM