Facebook login for Desktop application

Facebook is a popular social network portal, more and more applications are developed integrating facebook functions such as post on the wall, upload pictures to facebook.


Most time, the application is design for a single Facebook user, for my last project (a photo booth which allow user take photo and post the picture to Facebook) is a different case, and while developping, it was found that when a WebBrowser(C# Controll) used for facebook login, after closing the form which contains the WebBrowser and Dispose it, the Facebook login status is still there after the Form is repopened. Even the cookie file is clean, still cannot log off facebook. And there is no logoff function in Facebook SDK.


The solution I used is I make the login part to be a seperate Application, which will record the login Token after Facebook user login their facebook account, and send the login token to the main application when the facebook login application closed. While the application closing, the cookies are deleted.


This solution is worked in my project.





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值