简体   繁体   中英

Login to facebook account without exiting app using facebook client API

I want to provide the user the option of posting to his facebook wall ,through my app. Inorder to achieve this , for facebook authentication and posting action I have used the facebook & facebook client API's provided by microsoft (their latest alpha version). I could also able to achieve the process of posting also using the API methods. The main problem , was on completion of Facebook authentication my app is getting relaunched newly , losing its existing instance. Is there any alternative ways so that I can achieve my scenario without exiting the app.

my authentication code here below

Session.ActiveSession.LoginWithBehavior("email,public_profile,user_friends,publish_actions", FacebookLoginBehavior.LoginBehaviorWebViewOnly);

Please let me know if some alternatives are possible.

Thanks, Mawy

You will need to install a combination of fast resume, and a UriMapper to correctly launch your app back to the right place after authentication. I dont' think Fast Resume is not required, however it provides a better experience as it should relaunch your app quicker.

Fast resume is define here , UriMapping is outlined here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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