- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的 LoginButton 工作,但我的 LoginManager 没有。
handleLogin = () => {
LoginManager.logInWithReadPermissions(['public_profile']).then(
function(result) {
if (result.isCancelled) {
alert('Login cancelled');
} else {
alert('Login success with permissions: '
+ result.grantedPermissions.toString());
}
},
function(error) {
alert('Login fail with error: ' + error);
}
)
}
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */
import
import "AppDelegate.h"
int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate > class])); } }
2016-07-14 17:04:36.591 asklegit[2749:839107] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 4 beyond bounds [0 .. 3]'
*** First throw call stack:
(
0 CoreFoundation 0x0000000110e5cd85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010fd1bdeb objc_exception_throw + 48
2 CoreFoundation 0x0000000110d45934 -[__NSArrayI objectAtIndex:] + 164
3 asklegit 0x000000010f344640 -[RCTBatchedBridge _handleRequestNumber:moduleID:methodID:params:] + 368
4 asklegit 0x000000010f343600 __33-[RCTBatchedBridge handleBuffer:]_block_invoke.460 + 1424
5 libdispatch.dylib 0x0000000114637d9d _dispatch_call_block_and_release + 12
6 libdispatch.dylib 0x00000001146583eb _dispatch_client_callout + 8
7 libdispatch.dylib 0x00000001146401ef _dispatch_main_queue_callback_4CF + 1738
8 CoreFoundation 0x0000000110db60f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
9 CoreFoundation 0x0000000110d77b99 __CFRunLoopRun + 2073
10 CoreFoundation 0x0000000110d770f8 CFRunLoopRunSpecific + 488
11 GraphicsServices 0x0000000115d0ead2 GSEventRunModal + 161
12 UIKit 0x0000000112fb8f09 UIApplicationMain + 171
13 asklegit 0x000000010f2c7cff main + 111
14 libdyld.dylib 0x000000011468c92d start + 1
15 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
最佳答案
通过删除对以前使用的 facebook 登录包或文件的任何引用解决了这个问题。我之前使用的是 react-native-facebook-login 中的 FBLoginManager,然后我将其从 xcode 中删除,并且 FBSDK LoginManager 可以正常工作!
关于ios - react-native FBSDK LoginManager 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38387368/
我正在尝试构建一个 react-native ios 应用程序。我正在尝试从 curl -O https://raw.githubusercontent.com/facebook/react-nati
在安装 fbsdk 库并按照所有步骤正确链接它之后,我在使用 react-native run-android 构建我的 android 文件夹时遇到问题。以下是我的错误消息。 我已经尝试将我的默认
我正在 Swift 应用程序中通过 Facebook 编写登录。我下载了 FacebookSDK,链接了库并创建了桥接 header ,并将其添加到 Objective-C 桥接 header 中。其
我正在用 swift 编写一个项目,我对这门语言还很陌生。 我将变量“username”的值设置为我对 facebook sdk 的请求结果,但在图形请求后我的变量值变为 nil。变量赋值在图形请求本
我目前正在为我的应用程序实现 Facebook 登录,我正在尝试从配置文件中获取以下信息: 名字,姓,性别,和国家。 但是,我似乎只能获取除用户国家以外的所有内容。我试过像这样将我的参数设置到我的 F
运行命令 react-native run-android 或 ./gradlew build 时出现以下错误 :react-native-fbsdk:generateReleaseResValues
我这样做了: react-native init YourApp cd YourApp react-native install react-native-facebooksdk react-nati
在我的图像处理应用程序中,我尝试使用 Facebook Profile Expression Kit。调用方法后 [FBSDKProfileExpressionSharer uploadProfile
FBSDKAccessToken currentAccessToken nil after quitting app 我看了很多相关的线程,我的案例中的解决方案仍然难以辨认。 这是我的 AppDele
分享静态照片时,我可以让我的应用程序切换到 Facebook 来分享该图像。它似乎与视频不一样。 这分享一张照片就好了。它移动到 Facebook 应用程序以确认帖子: let sharePhoto
我正在设置使用 facebook 登录,我想做的是当用户第一次授权该应用程序时,他们会转到一个新的 VC,在那里他们选择一个用户名。 但是,如果该用户注销然后再次使用 facebook 登录,我不希望
我们在模拟器中遇到应用程序传输安全错误(在 OSX 10.10.5 上运行的 Xcode 7)。我们为 iOS9 实现了 FB 指南。 调用的FB graph api是基于SDK v.3.24的。 在
我想在 Facebook 上分享图片,为此我这样做了: let photo: FBSDKSharePhoto = FBSDKSharePhoto() photo.image = croppedImag
根据标题,在我的设备上测试时,我收到 nil 可选展开错误,但在模拟器上却没有 - 我发现此问题的原因是调用 FBSDKProfile.currentProfile.name或类似的。我记得这给我在模
onLoginFinished 的结果只是告诉我授予的权限。来自repo ,不清楚如何获取用户配置文件。似乎 react-native-fbsdkcore 应该包装 FBSDKProfile.h 但看
我正确设置了 Facebook 登录(我能够使用 Facebook 按钮登录并检索个人资料数据)。我按照 FB 开发人员指南设置了 SSK 和登录按钮。当我返回按钮并想注销时出现问题。这是我得到的:
我设置了与 FB 开发者页面相同的所有内容(appId、appName、bundleId...)。我在 FBSDK 4.6 和 iOS 9 上工作。我也已经在 info.plist 上添加了这个 ke
我需要在 react-native 中处理 Facebook 登录错误。 在我的应用程序全新安装后尝试登录会向用户显示弹出窗口: "Facebook. Application would like t
我已经集成了 react-native-fbsdk 库并获取用户个人资料信息,例如除电子邮件之外的姓名、中间名等 我已经尝试过 readPermissions={["email,"public_pro
不要将其作为重复问题,我提出这个问题是因为答案没有帮助,集成对我来说效果很好,但页面加载速度非常慢。 加载登录屏幕确实需要很长时间。登录操作需要超过 8-50 秒或更长时间。 有时加载验证屏幕需要超过
我是一名优秀的程序员,十分优秀!