简体   繁体   English

Facebook集成为Android中的应用程序

[英]Facebook integration for app in android

I have included Facebook feature in my app. 我的应用程序中包含Facebook功能。 I have couple of problems here: 我在这里有几个问题:

I have login and log out feature in my app but then If I logout from my facebook app. 我在我的应用程序中具有登录和注销功能,但是如果我从我的Facebook应用程序注销,则可以。 My app's facebook is also getting logged out. 我的应用程序的facebook也正在注销。 I am not sure why this is happening? 我不确定为什么会这样?

Using the help of: http://www.androidhive.info/2012/03/android-facebook-connect-tutorial/ 使用以下帮助: http : //www.androidhive.info/2012/03/android-facebook-connect-tutorial/

For that I have two questions: 为此,我有两个问题:

  1. Can I have independent Facebook integration like Facebook app installed or not or Facebook app installed logged in or not? 是否可以独立进行Facebook集成(例如是否安装了Facebook应用程序)或是否已登录安装了Facebook应用程序? I should be able to login or log out in my app. 我应该可以登录或注销我的应用程序。 is this possible? 这可能吗?

  2. If it is not possible can I know if Facebook app is logged in or not on a phone? 如果不可能,我是否可以知道Facebook应用程序是否已登录?

Thanks! 谢谢!

The example you provided uses old SDK. 您提供的示例使用旧的SDK。 I'm using SDK3.0 and your app won't log out if you log out from facebook app. 我使用的是SDK3.0,如果您从facebook应用程序注销,则您的应用程序将不会注销。 You can follow https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ from Facebook instead. 您可以改为从Facebook关注https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ There are couple of examples in SDK you could follow to grasp the idea. 您可以按照SDK中的几个示例来理解这个想法。 Hope that helps. 希望能有所帮助。

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

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