fbsdk

Debug-iphonesimulator gtmsessionfetcher.framework swift no such file directory

ε祈祈猫儿з 提交于 2019-12-11 06:06:57
问题 I'm fairly new to programming. I am trying to install Firebase and the Facebook iOS SDK into my app to allow for Facebook authentication. I have already installed the necessary pod files(FireBase) and Frameworks (FBSDK) on to my project. I am trying to build the app now but I come across the following error. /Users/JuanPa/Library/Developer/Xcode/DerivedData/jps-showcase-dytvwqtvwsggladxlmwwyoflurwt/Build/Products/Debug-iphonesimulator/jps-showcase.app/Frameworks/GTMSessionFetcher.framework:

How to check if user is logged in with FBSDKLoginKit in iOS?

本秂侑毒 提交于 2019-12-10 23:23:52
问题 When I run the app in viewDidLoad I need to check if user was logged in before or not. if FBSDKAccessToken.currentAccessToken() != nil { print("1") presentViewController(controller, animated: true, completion: nil) } else { print("2") let button = FBSDKLoginButton() button.delegate = self button.readPermissions = ["public_profile", "user_friends"] view.addSubview(button) } It always prints "2" . Why? 回答1: Below two methods must be implemented in AppDelegate : func application(application:

iOS app crashes when I write FirebaseApp.configure()

雨燕双飞 提交于 2019-12-10 17:32:49
问题 I have an ios app which works fine with normal and facebook login. Today I integrated firebase and when I write FirebaseApp.configure() in app delegate, my app crashes and this function is highlighted with error code "unexpectedly found nil while unwrapping an optional value": func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any]) -> Bool { return FBSDKApplicationDelegate.sharedInstance().application(app, open: url, sourceApplication: options

React native fbsdk issue - Task :react-native-fbsdk:compileDebugJavaWithJavac FAILED

懵懂的女人 提交于 2019-12-10 13:14:12
问题 I'm having issues building my android folder with react-native run-android after installing the fbsdk library and following all the steps to properly link it. Below is my error message. I already tried to change my default sdk version from 23 to 27.0.1 which allowed me to have a more detailed error message since before I would only get failed to build aapp. Any idea how to fix this? It works properly on ios. > Task :react-native-fbsdk:compileDebugJavaWithJavac FAILED /Users/hugohyz/code

Issues retrieving fbsdk Access Token and User ID

此生再无相见时 提交于 2019-12-08 12:39:53
问题 I am trying to retrieve the Access Token and User ID of the logged in user in my React Native App. For some reason when I tried to update the fbsdkcore package, it did not exist anymore. So, I tried to resolve it within the general fbsdk package. I am calling the js file (of which I think retrieves the accesstoken) in the package as: const AccessToken = require('react-native-fbsdk/js/FBAccessToken'); And subsequently in my code I try to log it so that I can see if it works, simply by: console

No Such Module 'FBSDKLoginKit' Xcode 9

喜你入骨 提交于 2019-12-07 18:50:28
问题 Using CocoaPods, I have imported the below frameworks: platform :ios, '11.0' use frameworks! target '{APP NAME}' do pod 'Firebase' pod 'Firebase/Auth' pod 'Firebase/Core' pod 'Firebase/Database' pod 'Firebase/AdMob' pod 'Firebase/Messaging' pod 'Batch' pod 'FBSDKLoginKit' pod 'FBSDKCoreKit' pod 'Google-Mobile-Ads-SDK' end When I build my project, it runs happily on my iPhone with no errors. When I try to create an Archive of the project, it shows one of the below and refuses to build the

FBSDK: Cannot read property loginwithreadpermissions of undefined

心不动则不痛 提交于 2019-12-07 01:38:30
问题 I'm setting up a React Native project using the FBSDK for login purpose. Here's what I've done so far: I ran npm install react-native-fbsdk --save I ran react-native link I followed each step mentioned there: https://developers.facebook.com/docs/facebook-login/ios/ I double checked using this video: https://www.youtube.com/watch?v=rAXVKapP5cM However, I still get this red screen error: Cannot read property logInWithReadPermissions of undefined at FBLoginManager.js, line 77 (https://github.com

No Such Module 'FBSDKLoginKit' Xcode 9

末鹿安然 提交于 2019-12-06 07:59:58
Using CocoaPods, I have imported the below frameworks: platform :ios, '11.0' use frameworks! target '{APP NAME}' do pod 'Firebase' pod 'Firebase/Auth' pod 'Firebase/Core' pod 'Firebase/Database' pod 'Firebase/AdMob' pod 'Firebase/Messaging' pod 'Batch' pod 'FBSDKLoginKit' pod 'FBSDKCoreKit' pod 'Google-Mobile-Ads-SDK' end When I build my project, it runs happily on my iPhone with no errors. When I try to create an Archive of the project, it shows one of the below and refuses to build the project to Archive. No such module 'FBSDKCoreKit' No such module 'FBSDKLoginKit' I have no idea what I'm

FBSDK: Cannot read property loginwithreadpermissions of undefined

妖精的绣舞 提交于 2019-12-05 05:34:53
I'm setting up a React Native project using the FBSDK for login purpose. Here's what I've done so far: I ran npm install react-native-fbsdk --save I ran react-native link I followed each step mentioned there: https://developers.facebook.com/docs/facebook-login/ios/ I double checked using this video: https://www.youtube.com/watch?v=rAXVKapP5cM However, I still get this red screen error: Cannot read property logInWithReadPermissions of undefined at FBLoginManager.js, line 77 ( https://github.com/facebook/react-native-fbsdk/blob/master/js/FBLoginManager.js ) Here's my AppDelegate.m content:

App crashes using Facebook Login SDK when I go to the home screen

喜你入骨 提交于 2019-12-04 04:16:35
I originally downloaded the FBSDK's version 4.10 and integrated them into my application by placing them in the frameworks folder. Realizing that these would not get updated over time, I removed them completely and tried to add them as pods to my project. The pods installed successfully, I have imported them correctly in my bridging header file, and there were no other issues. The pods update installed version 4.11 which has caused me some headache. I am using the FBSDKLoginKit to log a user into their account and retrieve information from that. I am able to get back a dictionary with the