facebook-sdk-4.0

Facebook SDK v4 LoginButton ignores XML customizations

北城以北 提交于 2019-11-28 16:50:54
The new Facebook SDK for Android (v4.0) that was released recently caused strange behavior for a customized LoginButton I'm using. Below is a comparison of how the same XML is rendered in different SDK versions. The problem seems to be that the FB icon in SDK 4.x doesn't stretch properly to fit a custom-sized button, and at 4.0.1 the android:layout_height property is ignored altogether. My question is how do I make the button appear in SDK 4.x like it did in SDK 3.x? Both XML and Java solutions are perfectly acceptable. XML for SDK 3.x: <com.facebook.widget.LoginButton android:background="

Any Example showing how to login using Facebook SDK 4.0 in Android either by using own button or Facebook Button?

限于喜欢 提交于 2019-11-28 15:40:30
问题 Is there any tutorial or example showing how to login using own Button using Facebook SDK 4.0 in Android ? I am not getting anywhere and using facebook developers site it is difficult to understand.Like below when calling FBlogin button I want to check go for login if user has not logged in or if logged in I want the access token to get facebook profile information and user likes. FBlogin.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //Facebook login

Use Facebook App-scoped Id for ProfilePictureView

自闭症网瘾萝莉.ら 提交于 2019-11-28 13:07:15
I am implementing facebook's SDK for an android app. I have a ProfilePictureView , that requires, to be filled: profilePictureView.setProfileId(id) Yesterday, if I used the App-scoped Id of the profile (the one returned by Graph API) it worked: that's the only id I have, because apparently is against Facebook policy to get the "real" id. But today, without any modification, it returns a null image. I am guessing they changed the backend, but if so, what is the purpose of ProfilePictureView if it requires an id that is against Facebook's policy to get? From 26 Mar 2018, all solutions related to

No such module 'FBSDKCoreKit' XCODE 7.4

﹥>﹥吖頭↗ 提交于 2019-11-28 12:11:00
I am trying to add the Facebook login feature using FBSDKCoreKit and FBSDKLogin . When I try to import these two framework to my AppDelegate file, it shows error which is "No such module 'FBSDKCoreKit'". I changed Allow Non-modular Includes In Framework Modules from NO to YES , but the error is still there. I need help with coming up with a solution to resolve the error. user3288414 I resolved this problem by adding FacebookSDK Directory path to the "Framework Search Paths" Go to Build Settings and search for "framework search" I resolved No such module 'FrameworkName' issue with following

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

隐身守侯 提交于 2019-11-28 11:58:52
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(@"Granted all permission"); if ([FBSDKAccessToken currentAccessToken]) { [[[FBSDKGraphRequest alloc]

FBSDKLoginManager with FBSDKLoginBehaviorWeb failing with “Not Logged In” error

瘦欲@ 提交于 2019-11-28 11:55:20
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): (Not Logged In: You are not logged in. Please login and try again.) This is the code we are using to

Facebook SDK dependency conflict

戏子无情 提交于 2019-11-28 09:09:15
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-annotations:26.0.1@jar | | +--- com.android.support:support-media-compat:26.0.1@aar | | | +--- com.android

Get email and name Facebook SDK v4.4.0 Swift

▼魔方 西西 提交于 2019-11-28 05:15:53
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() == nil) { print("not logged in") } else{ print("logged in already") } loginButton.readPermissions =

ios facebook sdk 4.0 login error code 304

谁说我不能喝 提交于 2019-11-28 04:49:09
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 missing if ([result.grantedPermissions containsObject:@"email"]) { // Do work } } }]; } BUT the result is

Getting user's Personal info from Facebook in iOS

别来无恙 提交于 2019-11-28 04:33:25
I am quite new to objective-C and iPhone Development environment. I am implementing Facebook login in my app to get User's name, Email and profile Picture. I have successfully implemented login Part and have received name and User ID of the person. Now i want to get User's Email and Profile Picture from Facebook.But i am not having any Idea how to get it.I am using Facebook IOS SDK v4.0. How can i fetch User's Profile picture and Email Id from Facebook when i am having User ID? To get user Email ID you must ask permission for email while logging. FBSDKLoginButton *loginView = [