当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - what are the differences of various FB login methods?

问题描述:

There are three different login methods in iOS:

  1. Login via web pop-up
  2. Login via Safari
  3. Login via Native App

and one more in iOS 6 - login via native pop-up controller using iOS 6 Facebook credentials.

In my case, I'm using FB comments plugin inside UIWebView and I'd like to allow user to leave comments there. For that I'm using FB login via web pop-up. Using other methods lead to the two different results:

  1. FB comments plugin not loading at all
  2. FB comments plugin loaded, but user is still unauthorized (login via Safari)

Whereas I have no idea, how to deal with the first one, the second one happens I think because cookies (or FB credentials) are stored in safari, but not in my App, which is required for comments plugin to understand that the user has logged in.

In this case, I'm wondering - when and where should we use each of the FB login approaches?

And what should I use in my case?

网友答案:

I recommend using Parse to handle social account management. It's super easy to integrate with your code and free for your purposes. Take a look. Just sign up to Parse, Create an App and follow the easy quickstart guide. They also have great documentation and forums to help you out.

分享给朋友:
您可能感兴趣的文章:
随机阅读: