简体   繁体   English

iOS-Facebook SDK集成/设置

[英]iOS - Facebook SDK integration/setup

Facebook SDK asks that developers provide their App ID as well as their iTunes ID. Facebook SDK要求开发人员提供其应用程序ID和iTunes ID。

Anybody feel this is incredibly ridiculous, not to mention ridiculously suspicious? 有人觉得这太荒谬了,何况可疑呢? Every doc/comment I've seen claims Facebook requires our iTunes ID so that they can "link" our app from iTunes, or something to this affect. 我见过的每个文档/评论都声称Facebook需要我们的iTunes ID,以便他们可以从iTunes“链接”我们的应用程序,或与此相关的东西。

But i know for certain that this is not the case as there is a standard URL we can provide that lead users to the app, directly on iTunes/app-store. 但我可以肯定的是,事实并非如此,因为我们可以直接在iTunes / app-store上提供一个标准网址来引导用户使用该应用程序。

The URL i commented on related to this is here 我对此发表评论的URL在这里

* Update * *更新*

OK. 好。 I don't think I'm doing this right. 我认为我做的不对。 The App ID, which is provided by Facebook, this is the string that i provided in the Apple Store ID field. Facebook提供的应用程序ID,这是我在Apple Store ID字段中提供的字符串。 Which I'm pretty sure is WRONG. 我敢肯定这是错误的。 However, i am able to post to Facebook. 但是,我可以发布到Facebook。 What the hell is this field for? 这个领域到底是干什么的?

* Resolved * * 解决 *

The apple store id is the App ID that you see from the app information page on apples developer site. apple store ID是您从apples开发人员站点上的app信息页面中看到的App ID。

This seems to be a big misunderstanding. 这似乎是一个很大的误解。 Facebook doesn't want or require your iTunes Id. Facebook不需要或不需要您的iTunes ID。 It's an optional feature to register an url sheme for your application to provide a single sign login via the Facebook app on your iPhone. 这是一项可选功能,可以为您的应用程序注册网址sheme,以通过iPhone上的Facebook应用程序提供单点登录。

Bind your application to a URL scheme corresponding to your Facebook application ID. 将您的应用程序绑定到与您的Facebook应用程序ID相对应的URL方案。 The URL scheme you must bind to is of the format "fb[appId]://", where [appId] is your Facebook application ID. 您必须绑定到的URL格式为“ fb [appId]://”,其中[appId]是您的Facebook应用程序ID。 Without this, your application won't be able to handle authorization callbacks. 否则,您的应用程序将无法处理授权回调。 Modify your application's .plist file as follows: 修改应用程序的.plist文件,如下所示:

https://github.com/facebook/facebook-ios-sdk https://github.com/facebook/facebook-ios-sdk

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

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