开发者

Are Facebook SDK and Android Facebook app linked?

I'm just starting to use Facebook SDK for Android and I'm wondering if there is a way to link it to the actual Facebook android app itself.

What I mean is when I'm logged in in Facebook official app, I wou开发者_如何学编程ld like Facebook.isSessionValid() to return true and not get into the login with password process.

Is that possible or am I dreaming of an unfeasible thing?


That's not possible. The Facebook SDK uses the app if it's installed for authentication. Otherwise it falls back to a WebView based one. This way you don't have to deal with usernames and passwords (and can't get them even if you wanted). It won't ask the user for credentials if he is already signed into the app though.

The user still has to confirm permissions and allow your app specifically for safety reasons. It would be pretty bad if every app could abuse your Facebook account in the background without asking for permission first.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜