facebook-login

Parse login with Facebook does not work

寵の児 提交于 2020-01-04 09:37:07
问题 I recently implemented Parse login with facebook. I basically followed all the instructions to set up Facebook SDK and Parse SDK. So here is the part where the App throws out an exception: NSArray *permissionArray=@[@"public_profile", @"email"]; [PFFacebookUtils logInWithPermissions:permissionArray block:^(PFUser *user, NSError *error) { if (!user) { NSLog(@"Uh oh. The user cancelled the Facebook login."); } else if (user.isNew) { NSLog(@"User signed up and logged in through Facebook!"); }

Get facebook email parse.com

爷,独闯天下 提交于 2020-01-04 09:17:45
问题 I am trying to save a facebook user's email when they log in to my app. The only example parse provides is this, but It does not save emails even when I ask for the correct facebook permission. private void onLoginButtonClicked() { if (loginProgressDialog != null) { loginProgressDialog.dismiss(); loginProgressDialog = null; } loginProgressDialog = ProgressDialog.show(LoginActivity.this, "", "Logging in...", true); List<String> permissions = Arrays.asList("public_profile", "user_about_me",

Get facebook email parse.com

丶灬走出姿态 提交于 2020-01-04 09:17:04
问题 I am trying to save a facebook user's email when they log in to my app. The only example parse provides is this, but It does not save emails even when I ask for the correct facebook permission. private void onLoginButtonClicked() { if (loginProgressDialog != null) { loginProgressDialog.dismiss(); loginProgressDialog = null; } loginProgressDialog = ProgressDialog.show(LoginActivity.this, "", "Logging in...", true); List<String> permissions = Arrays.asList("public_profile", "user_about_me",

Facebook provider unconfigured. Make sure to add a `facebook_application_id` string

这一生的挚爱 提交于 2020-01-04 07:42:50
问题 I'm using Firebase UI Sign In and trying to implement Facebook sign in into my android app. When launching the firebase ui activity I get: "java.lang.IllegalStateException: Facebook provider unconfigured. Make sure to add a facebook_application_id string" In my string resources I have added it, this is how it looks: By the way in the firebase docs the string names are different from the ones in the facebook docs, this is how they look in the facebook docs or also called quickstart: `<string

Facebook user to Parse.com

ⅰ亾dé卋堺 提交于 2020-01-03 03:01:06
问题 How do I get the data from The Facebook user to Parse.com? The code that I will provide below makes a user but it doesn't update it with data when I login, why is it not working? public class LoginActivity extends Activity { private EditText usernameView; private EditText passwordView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); LoginButton loginButton = (LoginButton)findViewById(R.id.login_button);

How to get email from facebook

匆匆过客 提交于 2020-01-02 22:59:06
问题 I have created an application. There is form, in which there are two fields email and name. There is button, which enable you to login with facebook and after that it will get the user name and email. I have tried many ways. I can get name and other detail, but I couldn't get user email. I have also used fql to get the email but didn't get. Below is the code. I want to retrive that by PHP. $fql = 'SELECT contact_email FROM user WHERE uid = '.$user; $res = $facebook->api(array('method' => 'fql

Facebook Login recommending to require HTTPS - How to Configure HTTP redirect URL for Facebook Login in ASP.NET MVC?

徘徊边缘 提交于 2020-01-02 03:52:04
问题 Facebook is recommending that I use a HTTPS redirect URL, instead of HTTP. I've been trying to find a way to configure it to generate a HTTPS URL, at the moment it's generating a HTTP URL. https://www.facebook.com/v2.8/dialog/oauth?response_type=code&client_id=255162614498922&redirect_uri= http://example.com/signin-facebook &scope=&state=-x4AVtFysadfadsfsadROH6E1QJ82gv4e4j48s32K5xbmqlF-JFbE5Y2Tx

Facebook login not working if Facebook native application installed in device?

懵懂的女人 提交于 2020-01-01 11:57:06
问题 I am working on android Application. when facebook native application installed it does not work and show only two popup. but if itis not installed it redirect to facebook website and works fine .How i can resolve this . any help will be appreciated. I have checked and added all hashkey in facebook app. but still not working . statusCallback = new SessionStatusCallback(); Session session = Session.getActiveSession(); this.isLogin = isLoginUser; session = null; if (session == null) { if

Facebook Login does not return to App with Xcode 7 iOS 9

左心房为你撑大大i 提交于 2020-01-01 10:57:10
问题 I have implemented this method for Facebook Login in the App Delegate using Xcode 7 and it works perfectly: - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options { return [[FBSDKApplicationDelegate sharedInstance] application:app openURL:url sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] annotation:options[UIApplicationOpenURLOptionsAnnotationKey]]; } However, since I need to use Xcode 6 to submit my app to the

Facebook API Logout of my app but not facebook

帅比萌擦擦* 提交于 2020-01-01 10:11:54
问题 How do I make a logout using Facebook's api log me out of my app (a website), but keep me logged into facebook.com? This logs me in alright: window.fbAsyncInit = function() { FB.init({ appId : '<?= APP_ID ?>', status : true, cookie : true, xfbml : true, oauth : true, }); FB.Event.subscribe('auth.login', function(response) {alert(response); window.location = 'http://reviewsie.com/accounts/facebook'; }); }; (function(d) { var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d