iOS 6 Facebook 发布程序以“remote_app_id 与存储的 id 不匹配”告终

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12671420/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:33:08  来源:igfitidea点击:

iOS 6 Facebook posting procedure ends up with "remote_app_id does not match stored id"

iosiphoneobjective-cfacebook

提问by Stas

This is my third question about posting on Facebook.

这是我关于在 Facebook 上发帖的第三个问题。

Although this may be a duplicate of Mac OS X Facebook login failed - no stored remote_app_id for appbut I decided to post separate question because we have iOS here but not MAC OS.

虽然这可能是Mac OS X Facebook 登录失败的重复- 没有存储应用程序的 remote_app_id但我决定发布单独的问题,因为我们这里有 iOS 但没有 MAC OS。

A few days ago I posted a question iOS 6 Facebook posting procedure ends up with "remote_app_id does not match stored id" errorThe problem is still the same I can't perform a post but now I've got an error:

几天前我发布了一个问题iOS 6 Facebook 发布程序最终以“remote_app_id 与存储的 id 不匹配”错误问题仍然相同我无法执行发布但现在我遇到了错误:

error is: Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: remote_app_id does not match stored id." UserInfo=0xa260270 {NSLocalizedDescription=The Facebook server could not fulfill this access request: remote_app_id does not match stored id.}

error is: Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: remote_app_id does not match stored id." UserInfo=0xa260270 {NSLocalizedDescription=The Facebook server could not fulfill this access request: remote_app_id does not match stored id.}

The code you may find in my previous question.
Does anyone know what's going on?
What is remote and stored app ids?

您可能会在我上一个问题中找到的代码。
有谁知道发生了什么?
什么是远程和存储的应用程序 ID?

回答by Andrew Kosovich

This happens when authenticating using iOS6 Accounts API.

使用 iOS6 Accounts API 进行身份验证时会发生这种情况。

All you have to do to get it working is:

要使其正常工作,您所要做的就是:

  • log in to the developers.facebook.com
  • set your app to be an iOS Native app
  • type in your app's bundle ID.
  • 登录到developers.facebook.com
  • 将您的应用设置为 iOS 原生应用
  • 输入您的应用程序包 ID。

screenshot

截屏

回答by user1372829

just copy and paste the bundle ID you have in your xcode, into where facebook wants the Bundle ID

只需将您在 xcode 中的捆绑 ID 复制并粘贴到 facebook 想要捆绑 ID 的位置

a sample pic is here http://kosovich.org.ua/tmp/facebook_ios6_app_howto.png

示例图片在这里http://kosovich.org.ua/tmp/facebook_ios6_app_howto.png

Say for eg, your bundle ID is named com.parse. (e.g. com.parse.myDateApp) but that into bundle ID. And make sure you check the box that says Facebook login

比如说,你的包 ID 被命名为 com.parse。(例如 com.parse.myDateApp) 但它变成了包 ID。并确保选中 Facebook 登录框

回答by Legoless

We had the same problem, but since Facebook is changing layouts a lot, I'm posting what solved our problem with pictures again. The solution is similar to Andrew Kosovich's answer, but with new interface there are some changes.

我们遇到了同样的问题,但由于 Facebook 经常改变布局,我再次发布解决我们图片问题的方法。解决方案类似于 Andrew Kosovich 的答案,但新界面有一些变化。

  1. Loginto your Facebook Developersand select your problematic app.

  2. Go to app's settings

    Settings screenshot

  3. Checkif iOSis already added. If you find iOS section, go to step 4, otherwise add it, by clicking Add platformbutton.

    Add platform screenshot

  4. Enter correct bundle IDof your application into the appropriate box.

    iOS platform screenshot

  1. 登录您的Facebook 开发者并选择您的有问题的应用程序。

  2. 转到应用程序的设置

    设置截图

  3. 检查如果iOS版已经被添加。如果您找到 iOS 部分,请转到第 4 步,否则通过单击添加平台按钮添加它。

    添加平台截图

  4. 在相应的框中输入应用程序的正确捆绑 ID

    iOS平台截图

After entering correct details the login with Facebook SDK should work.

输入正确的详细信息后,使用 Facebook SDK 登录应该可以工作。

Warning: Do not forget to enable Facebook access to your application in the Settings application of the specific iOS device.

警告:不要忘记在特定 iOS 设备的设置应用程序中启用 Facebook 访问您的应用程序。

回答by mandeep

When ever you sign up to developers.facebook.com you get a unique id http://developers.facebook.com/

当您注册到developers.facebook.com 时,您会获得一个唯一的ID http://developers.facebook.com/

Register your app over there and u get a unique app id and secret id you have to use that when you use your facebook sdk for integrating your app

在那里注册您的应用程序,您将获得一个唯一的应用程序 ID 和秘密 ID,当您使用 facebook sdk 集成您的应用程序时,您必须使用它

the fbappname and fbappid then are to be entered in plist which will let you create your session

然后将 fbappname 和 fbappid 输入到 plist 中,这将让您创建会话

回答by Gabriel.Massana

All developers of a particular app, should be known to Facebook. While the application is in Sandbox mode (i.e. developer only access), all every user who want to use the Facebook platform, for testing/developing the application, will have to be added as a developer.

Facebook 应该知道特定应用程序的所有开发人员。当应用程序处于沙盒模式(即仅限开发人员访问)时,所有想要使用 Facebook 平台来测试/开发应用程序的用户都必须添加为开发人员。

  1. Go to https://developers.facebook.com
  2. Your app
  3. Roles
  4. Add Facebook ID of the developer / administrator
  1. 转到https://developers.facebook.com
  2. 你的应用
  3. 角色
  4. 添加开发者/管理员的 Facebook ID

To know your Facebook ID: findmyfacebookid.com

要知道您的 Facebook ID:findmyfacebookid.com