facebook-sdk-4.0

Facebook SDK 4 for Android - how to log out programmatically

此生再无相见时 提交于 2019-11-27 17:07:24
Recently, Facebook released SDK 4 with new and cool updates. I tried to switch into SDK4 to use new features, however, I am struggling with the Login feature of Facebook. So far, to log out Facebook programmatically, I used : Session session = Session.getActiveSession(); session.closeAndClearTokenInformation(); But SDK4 seems not to support Session anymore, and in official docs, they mention: There are two ways to implement Facebook login on Android: LoginButton class - Which provides a button you can add to your UI. It follows the current access token and can log people in and out. Well,

Facebook SDK dependency conflict

穿精又带淫゛_ 提交于 2019-11-27 15:55:53
问题 I am having this error: On getting dependency tree, I found that there is nothing wrong with animated vector drawables but facebook's latest sdk has previous version of support-v4 custom tab. I tried excluding with exclude group command but its not working. Here is my dependency tree: +--- com.facebook.android:facebook-android-sdk:4.26.0@aar | +--- com.android.support:support-v4:26.0.1@aar | | +--- com.android.support:support-compat:26.0.1@aar | | | \--- com.android.support:support

FBSDKAppInviteDialog in Facebook iOS SDK version 4.0.1 invite successfully sent, but no notifications received

徘徊边缘 提交于 2019-11-27 15:09:22
问题 With the new Facebook SDK 4.0.1, I have implemented below in my "Invite to App" button: FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSURL URLWithString:@"https://fb.me/1111111111"]]; content.previewImageURL = [NSURL URLWithString:@"http://someImage.jpg"]; [FBSDKAppInviteDialog showWithContent:content delegate:self]; By clicking the button, it successfully direct me to my Facebook app, I could pick my friends and type invite message, and the invites are

Could not build module 'FBSDKCoreKit' For FacebookSDK 4

左心房为你撑大大i 提交于 2019-11-27 12:36:08
I am having issue while updating Facebook SDK 3 to 4 when I add the framework it was added successfully. but when i add header file it's having the error that " Could not build module 'FBSDKCoreKit' " . Don't know the reason. In setting the "Allow Non-modular Includes in Framework modules" setting to YES in Build settings solved the problem for me. but don't know if is there any problem or issue or any side effects of it. Its Facebook Bug you can check the solution they are providing in this link . Update 1 Facebook said that they have fixed and will apply solution in next update see this link

How to logout user using Facebook authentication using Swift and iOS?

会有一股神秘感。 提交于 2019-11-27 08:56:26
I've tried searching around but I can't find the answer to my question. I'm playing around with this application from github: https://github.com/Yalantis/Koloda/tree/master/Example I'm using it because I'm doing a project which will use the tile based swiping from this application. I'm also using firebase. So far, I can add users to my database, so the app and firebase are connected. I also want users to register/login using facebook. I have connected my app to facebook and a user can come in and successfully login using facebook authentication. The problem I am having is logging out. When I

Swift Open Facebook Profile by FacebookUID

懵懂的女人 提交于 2019-11-27 07:45:22
问题 I'm trying to open a user's Facebook profile in Swift using their Facebook UID. In the Simulator, it works and opens up the web version of the profile and works fine, however on my actual device, it opens up the Facebook native app and gives me a "Page not Found" error. guard let facebookUID = self.user?.facebookUID else { return } print(facebookUID) let fbURLWeb: NSURL = NSURL(string: "https://www.facebook.com/\(facebookUID)")! let fbURLID: NSURL = NSURL(string: "fb://profile/\(facebookUID)"

How to “rerequest” email permission using Facebook iOS SDK 4.x?

ぐ巨炮叔叔 提交于 2019-11-27 06:46:19
问题 I am integrating FacebookSDK 4.x integration with custom UI and using following method to log-in and also getting email permission from user. FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"email"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { if (error){ NSLog(@"%@",[error localizedDescription]); } else if (result.isCancelled){ NSLog(@"Cancled"); } else { if ([result.grantedPermissions containsObject:@"email"]) { NSLog(@

FBSDKLoginManager with FBSDKLoginBehaviorWeb failing with “Not Logged In” error

馋奶兔 提交于 2019-11-27 06:36:39
问题 Something must have changed recently on Facebook's servers regarding how they process login requests because this used to be working perfectly and suddenly stopped. (We are using FBSDKLoginManager.loginBehavior = FBSDKLoginBehaviorWeb because of how our app is replicated for multiple brands (one codebase, many apps) and issues we ran into using the native login.) Anyhow, this is what we see now when we try to present a login webview to the user ( before it even lets them attempt to login):

Get email and name Facebook SDK v4.4.0 Swift

流过昼夜 提交于 2019-11-27 00:41:54
问题 TL;TR: How do I get the email and name of a user that is logged in on my app using the facebook SDK 4.4 So far I have managed to get login working, now I can get the current access token from anywhere in the app. How I have my login view controller and facebook login button configured: class LoginViewController: UIViewController, FBSDKLoginButtonDelegate { @IBOutlet weak var loginButton: FBSDKLoginButton! override func viewDidLoad() { super.viewDidLoad() if(FBSDKAccessToken.currentAccessToken

ios facebook sdk 4.0 login error code 304

泄露秘密 提交于 2019-11-27 00:32:54
问题 I've just updated facebook sdk v4.0 and according the tutorial of Using Custom Login UIs -(IBAction)facebookLoginClick:(id)sender { FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"email"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { if (error) { // Process error } else if (result.isCancelled) { // Handle cancellations } else { // If you ask for multiple permissions at once, you // should check if specific permissions