Facebook SDK - iOS - 无法共享网址(错误102) [英] Facebook SDK - iOS - Fail to share URL (Error 102)

查看:182
本文介绍了Facebook SDK - iOS - 无法共享网址(错误102)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的应用程序上集成一个简单的URL分享,遵循专门的Facebook教程(链接

I am trying to integrate a simple URL Share on my App, following the dedicated Facebook tutorial (link)

在我的应用程序中,我只需点击一个按钮,显示一个对话框,我可以在其中键入注释。
这部分工作找到。然而,当我点击发布时,我收到以下错误:

On my app, I simply click on a button, which displays a dialog where I can type in a comment. This part works find. Yet, when I click on "Post", I get the following error :


错误Domain = com.facebook.Facebook.platform代码= 102操作无法完成(com.facebook.Facebook.platform error 102.)UserInfo = 0x14dd1a10 {error_message =由于应用程序名称不匹配而无法验证应用程序。请检查由对话框配置的应用程序名称,app_id = 000000,error_code = 102}

Error Domain=com.facebook.Facebook.platform Code=102 "The operation couldn’t be completed. (com.facebook.Facebook.platform error 102.)" UserInfo=0x14dd1a10 {error_message=Failed to authenticate the application because of app name mismatch. Please check the application name configured by the dialog., app_id=000000, error_code=102}

(在此消息中,从Facebook开发者页面获取app_id。)

(In this message, I just replaced with zeroes the app_id I got from the Facebook developer page.)

在Facebook应用程序设置中,我设置了以下内容:

On the Facebook app settings, I set the following as such :


  • 显示名称:与应用名称相同的名称

  • Bundle ID与字符串返回 [[NSBundle mainBundle] bundleIdentifier];

  • 应用程序是live(不在沙箱中)

  • 深度链接和连接到FB:两个激活

  • "Display name" : the same name as the app name
  • "Bundle ID" with the string return by [[NSBundle mainBundle] bundleIdentifier];
  • The app is "live" (not in sandbox)
  • "Deep Linking" and "Connect to FB" : both activated

当我将设置保存在FB开发页面上时,我收到警告说我没有设置一个AppStore标识符(自从我开发应用程序以来还不可用)。

When I save my settings on the FB dev page, I get a warning saying that I did not set an AppStore identifier (which is not yet available since I am developing the app).

你能告诉我一点我没有做正确吗?

Can you please tell me the little thing that I did not do correctly ?

提前感谢您的回复。

我很乐意为您提供m必要时提供矿石信息。

I'll be happy to provide you with more info if necessary.

推荐答案

这通常来自于您在.plist中设置FacebookDisplayName,但是您在那里设置的内容与您的应用程序在您Facebook上的应用设置中。

This usually comes from you setting the FacebookDisplayName in your .plist, but what you set there didn't match the name of your app in your app settings on Facebook.

您在FacebookDisplayName中给出的值必须与您在Facebook上设置的值一致。

The value you give in FacebookDisplayName must match what you have set on Facebook.

这篇关于Facebook SDK - iOS - 无法共享网址(错误102)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆