Force facebook connection to login popup - oauth

How can I invoke the facebook connection without user click in facebook-button?
I have facebook login button in my Login.aspx, and other button in my Main.aspx who just redirect to Login.aspx. If user clicks on button of Main.aspx I want invoke facebook login button (open the litle popup bla bla bla.). If I don't do this, the user has to click 2 times to open the facebook dialog popup.
Any idea?

If you are using JavaScript... you need to call FB.login, that will open the login dialog.
Hope that helps.

Related

Remove facebook login button changing to logout

In my app I am implementing login with facebook but I have noticed that every time after I login to facebook the login button changes to logout and on click of logout I am able to logout from facebook.But I don't want the default facebook login button to change to logout.How to do this? I am trying for weeks and could not achieve it.

Facebook iOS Logout dialog

I'm using the official Facebook SDK and I'm struggling to logout the user.
The Action sheet (Logout dialog) appears with two buttons Log Out and Cancel but clicking on the Logout doesn't do anything. Do I need to implement another interface other than FBSDKLoginButtonDelegate?

Safari won't wait for user for Google sign-in redirect to iOS application

In my application I am using Google SignIn as Login to my application. I am not using cocoa pods I am directly using frameworks by pasting in my project. I am configuring GIDSignIn class like below.
//Allowing to sign in through browser
self.googleSignIn.allowsSignInWithBrowser = YES;
self.googleSignIn.allowsSignInWithWebView = NO;
//Initiate sign in
[self.googleSignIn signIn];
When i clicks on Google SignIn button it will redirect me to Safari (Not SFSafariViewController) and asks for google account credentials, everything is working fine. Once i allow to get the application to use my basic profile data, a pop up will appear in Safari for redirecting to my application and if I selects open it will go back to my application (Proper redirect URL is given) with the basic profile information. But problem is when I don't select an option of the alert view in safari for redirecting. It will close the alert view by itself and i will be in safari and no information will be redirected to my application. How to make the alertview wait for user response?
It will ask for user permission and once allow is pressed i will get the following screen.
And now if i don't select anything, the alert view dismisses and stays in Safari. Only if i press "Open" it will take me to MyApplication and gets me user basic profile application. Please help me how to stop alertview getting dismissed by itself.

How can I return the user to the login page if they click 'Cancel'?

I am using an OpenCart HybridAuth extension to allow users to login using their Social Media login credentials. This has been implemented correctly and a user is able to create a new account, however if I click the cancel button when prompted to give permission to the application, it leads me to a black page (URL Parameters: ?route=hybrid/auth&provider=Twitter):
How can I fix this so that it leads me back to either the login page?

Logout issue in new Facebook SDK 3.2

I am using Facebook SDK 3.2 in my iphone Application, i have used FBLoginView to login and logout from Facebook. and two buttons: first to post content on user's wall and second to post content on Friend's wall. In both i am using FBWebDialog. when user starts application login page opens (in safari) and everything works fine.
But i am facing following Problems:
if user want to login using another facebook id, there is no option to do it, first user have to logout from his first facebook account in safari, and when he return back to the application only then user will get the Facebook login page to login again.
when user tap FBLoginView it will open safari, but after tapping loginView, if user want to come back in the application without logging in, there is no option to do that.
In posting action i am using FBWebDialog, if i have not logged in and try to open the FBWebDialog then in dialog it shows Facebook login page to login first, but after entering user info and password for Facebook it shows a message "An error occurred. please try again later." and in the dialog if we tap "Okay" button, it shows the user is logged in, but doesn't show the page to share content. really strange behavior.
plz Help!!!!!
any help will be appreciated.

Resources