简体   繁体   English

如何在Windows Phone 8应用程序中检查社交网络身份验证?

[英]How to check social networking authentication in Windows Phone 8 Application?

In my application users can login using the social networks such as facebook, twitter, linkedin so can any one tell me how to check whether user is already logged in with the facebook/twitter/linkedin in Phone with browser or other internal Apps, My application should also be able to know that the user has logged in so that it should not ask again for the login screen, Even if the user logged in using web browser/Facebook internal App my application should be able to access those credentials and it should allow users to login with out asking for the credentials again. 在我的应用程序中,用户可以使用诸如Facebook,Twitter,linkedin之类的社交网络登录,因此任何人都可以告诉我如何检查用户是否已在带浏览器的手机或其他内部应用程序中通过Facebook / twitter / linkedin登录。还应该能够知道用户已经登录,因此它不必再次询问登录屏幕,即使用户使用Web浏览器/ Facebook内部应用程序登录,我的应用程序也应该能够访问这些凭据,并且应该允许用户登录而无需再次要求提供凭据。

How to do this. 这个怎么做。

Thank you for all hints and your help in advance! 感谢您的所有提示和预先的帮助!

Have you ever gone any authentication methods? 您是否曾经使用过任何身份验证方法? This link helps you to undergo Facebook login authentication, where it asks for the permission for the first time and if user accepts, it stores all those credentials about the particular user. 链接可帮助您进行Facebook登录身份验证,在该链接中 ,它首次请求权限,如果用户接受,它将存储有关特定用户的所有凭据。

Next time the person logs in, they don't want to login again. 下次该人登录时,他们不想再次登录。 You just call the login method in startup and it automatically makes the login successful. 您只需在启动时调用登录方法,它就会自动使登录成功。 You can also get the user informations, such as email address and basic informations and store it in your application(Isolated Storage) if the user gives access to your application and you can use it next time when the user enter into the application. 如果用户允许访问您的应用程序,您还可以获得用户信息,例如电子邮件地址和基本信息,并将其存储在您的应用程序中(独立存储),下次用户进入该应用程序时可以使用它。

Like you can also perform authentication in Microsoft Account, Facebook, Twitter & Google w/ Mobile Services in the below link 就像您还可以通过以下链接在带有移动服务的Microsoft帐户,Facebook,Twitter和Google中执行身份验证

http://code.msdn.microsoft.com/windowsapps/WP-Authenticate-Account-c7e0ef84 http://code.msdn.microsoft.com/windowsapps/WP-Authenticate-Account-c7e0ef84

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM