简体   繁体   English

关于 iPhone 的 Facebook SDK 的问题

[英]Question about the Facebook SDK for iPhone

Today, I have downloaded the last version of the Facebook API for iPhone.今天,我已经下载了最后一个版本的Facebook API for iPhone。 I have integrated it to my project with no problem.我已经毫无问题地将它集成到我的项目中。 But there are some things very different to the older versions, for example:但是有一些东西与旧版本非常不同,例如:

There is no log in dialog, on this version when I tap the Log In button, the sdk takes me to Safari, then I log in and then it back to the app.没有登录对话框,在这个版本上,当我点击登录按钮时,sdk 将我带到 Safari,然后我登录,然后返回应用程序。 My question is: is that ok?我的问题是:这样好吗? is there some way to show the log in dialog like on the older version?有没有办法像旧版本一样显示登录对话框?

Yes.是的。 that is absolutely okay.没关系。 In that provide proper credentials and it will confirm for authorization for the application.在那提供适当的凭据,它将确认应用程序的授权。 Once user clicks okay it will be returned back to the application.一旦用户单击确定,它将返回给应用程序。 You need to change your.plist file and provide your application id in that.您需要更改 your.plist 文件并在其中提供您的应用程序 ID。 flow is like流量就像

 URL Types              :
     ITEM 0             :
       URL Identifier   :
       URL Schemes      :
         Item 0         : fb **Your Application ID of Facebook** (without space with FB)

Based on that it will return to your application.基于此,它将返回到您的应用程序。 Hope it helps.希望能帮助到你。

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

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