简体   繁体   English

通过Android的Facebook登录?

[英]Facebook login through android?

I want to create a facebook app for android with the following functions:Login to facebook and Post to wall help me! 我想为Android创建一个具有以下功能的Facebook应用:登录Facebook和张贴到墙上对我有帮助! I have to check if official facebook app is installed in user's device. 我必须检查用户的设备中是否安装了官方的Facebook应用程序。 If yes then it will login from that app only otherwise it will open fb browser. 如果是,那么它将仅从该应用程序登录,否则它将打开fb浏览器。 I checked that thing but problem is that after logging through fb app it doesnot come to its own app. 我检查了一下,但是问题是通过fb应用程序登录后,它没有进入自己的应用程序。 It continue to stay on facebook app. 它继续留在Facebook应用程序。 How to return to my own app after login to fb 登录fb后如何返回我自己的应用

You need a Session.StatusCallback listener. 您需要一个Session.StatusCallback侦听器。 Click the "Step 2: Set up authentication change triggers" hyperlink on this page for details: 单击本页上的“第2步:设置身份验证更改触发器”超链接,以了解详细信息:

https://developers.facebook.com/docs/android/login-with-facebook/ https://developers.facebook.com/docs/android/login-with-facebook/

This is very common question in android application. 这是Android应用程序中非常常见的问题。 if you want to know steps to integrate facebook then please refer below link carefully and do not miss any step. 如果您想知道整合Facebook的步骤,请仔细参考以下链接,不要错过任何步骤。

https://developers.facebook.com/docs/android/getting-started/ https://developers.facebook.com/docs/android/getting-started/

After refer this you will able to work with api of facebook.If you have any query then please ask me. 参考后,您将能够使用facebook的api。如果您有任何疑问,请问我。

Best of luck. 祝你好运。 Enjoying ANDROID :) 享受ANDROID :)

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

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