fbsdk

FBSDKLoginKit is crashing for unknown reason on iOS11.3 version

六眼飞鱼酱① 提交于 2020-01-13 05:26:27
问题 @IBAction func didTapLogainAction(_ sender: Any) { let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.logIn(withReadPermissions: ["email"], from: self) { (result, error) in if (error == nil){ let fbloginresult : FBSDKLoginManagerLoginResult = result! if fbloginresult.grantedPermissions != nil { if(fbloginresult.grantedPermissions.contains("email")) { if((FBSDKAccessToken.current()) != nil){ FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id, name, first

Facebook SDK 4.7 Login error handling

时间秒杀一切 提交于 2020-01-06 00:57:27
问题 I added FBSDK 4.7 to my swift app and when it opens the safari view controller to login, and I try to tap "Done" without inputting anything into the email/password fields, the app breaks. It spits out "fatal error: unexpectedly found nil while unwrapping an Optional value" How do I handle this error? Current login code: if let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager(){ fbLoginManager.logInWithReadPermissions(["email"],fromViewController:self, handler:{(result

Facebook SDK 4.7 Login error handling

偶尔善良 提交于 2020-01-06 00:52:18
问题 I added FBSDK 4.7 to my swift app and when it opens the safari view controller to login, and I try to tap "Done" without inputting anything into the email/password fields, the app breaks. It spits out "fatal error: unexpectedly found nil while unwrapping an Optional value" How do I handle this error? Current login code: if let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager(){ fbLoginManager.logInWithReadPermissions(["email"],fromViewController:self, handler:{(result

On Swift, how to retrive name and other data when login with Facebook and Parse with FBSDK

谁都会走 提交于 2019-12-25 06:02:13
问题 Can't get the user's name or email when login with Facebook via Parse. I should have set everything else properly in the AppDelegate. When I login with my email, my User class works, and can use data I registered with. When I try to login via Facebook, I only got the long alphanumerical string as username and stop. I'd like to retrive name, foto, birth and city. In my User.swift file I'got this: import Foundation struct User { let username : String let address : String } This is my login

On Swift, how to retrive name and other data when login with Facebook and Parse with FBSDK

拟墨画扇 提交于 2019-12-25 06:01:05
问题 Can't get the user's name or email when login with Facebook via Parse. I should have set everything else properly in the AppDelegate. When I login with my email, my User class works, and can use data I registered with. When I try to login via Facebook, I only got the long alphanumerical string as username and stop. I'd like to retrive name, foto, birth and city. In my User.swift file I'got this: import Foundation struct User { let username : String let address : String } This is my login

AngularJS: user was not connected after a successful FB.login

北城以北 提交于 2019-12-24 18:23:17
问题 In a web app using AnularJS and the Facebook SDK, right after initing I'm calling FB.getLoginStatus() to check if user is connected: In my run method: window.fbAsyncInit = function() { FB.init({ appId : '186219064942355', xfbml : false, version : 'v2.10' }); FB.AppEvents.logPageView(); //$rootScope.$broadcast('fbInitiated'); $rootScope.$broadcast('checkFBLoginStatus'); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement

FBSDKShareDialog not working on IOS11

血红的双手。 提交于 2019-12-24 05:57:43
问题 I am using FBSDKShareDialog to share an image on facebook, but on IOS11 it is not working. The Facebook share dialog is not opening. How can I share the post and have it work on IOS11 and previous versions as well. My previous working code: FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; photo.image = img; photo.userGenerated = YES; FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init]; content.photos = @[photo]; [FBSDKShareDialog showFromViewController:self

FBSDKShareDialog not working on IOS11

让人想犯罪 __ 提交于 2019-12-24 05:57:09
问题 I am using FBSDKShareDialog to share an image on facebook, but on IOS11 it is not working. The Facebook share dialog is not opening. How can I share the post and have it work on IOS11 and previous versions as well. My previous working code: FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; photo.image = img; photo.userGenerated = YES; FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init]; content.photos = @[photo]; [FBSDKShareDialog showFromViewController:self

How to Remove the Logout Button and store the session permanently FBSDK IOS using Swift

*爱你&永不变心* 提交于 2019-12-24 02:59:09
问题 I am creating an app in which user can Sign in using Facebook. I am fetching user info like profile picture Username etc. Now when i tap on Login with facebook button FB ask for permission i am loged in. but then there is Logout Button displaying at the same place as LoginWithFacebook button was. I want to Remove the logout button because i do not want the user to log out. I want to store the session and use it all the way long until app is unintsalled because I do not want the user to login

React Native Android: Method does not override or implement a method from a supertype

﹥>﹥吖頭↗ 提交于 2019-12-23 06:56:51
问题 I've added react-native-fbsdk to my react native project and have it building fine on iOS. But on the android side, I can't get gradle to build the project. When trying to compile react-native-fbsdk, I'm hitting: "method does not override or implement a method from a supertype" 21:41:11.863 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API. 21:41:12.100 [ERROR] [system.err] /Users/joncursi/Sites/joncursi/redbirdNative/node_modules/react-native