Sign in with google in my website - single-sign-on

I have created Client Id in google console, and I put the code given in google console,
but if I have already signed in gmail in other tab, and I open my website it automatically sign in with gmail.
I want to know that how can I implement this so that when user press 'Sign in with google' then only it goes to other page.

I am also having that issue. I think if we use a javascript onclick function, that should work. But have you got any solutions yet?

Related

Mailto: Function opens Paypal app instead of native email app (on mobile)

i try to figure out why my mailto function doesn't work like expected. I get redirected to paypal everytime i click on it. I use an Android phone (S7).
The button link looks like this:
mailto:?subject=I%20wanted%20you%20to%20see%20this%20site&body=Check%20out%20this%20article%3A%20https%3A%2F%2Ftestsite.net%2F
Of course i could delete or disable Paypal on my phone...The problem is: i want to share the link online and if people get redirected to paypal instead this would cost me money.
There must be any solution...Do you have any ideas ?
With best Regards,
Fabi
Hold down the paypal app icon. Click info. Go down to settings, then where it says set as default, click "clear defaults".

Webpage is not Available - Facebook Login Integration

I want to integrate facebook api to help in the registration process in my website. It was working fine before - the standard fb login button appears, the pop-up window to login to fb was working, some of the user data are obtained. However after several trials with me modifying the code as the feature isnt fully integrated yet in my site, whenever I press the login button what replaces the fb login page is "This webpage is not available." I already retracted the modifications I made to the point that it was back to the version wherein it was working before. I also created another app and replaced the app id and secret key, still it displays the same message. I do not know what is wrong. Please help.
Update:
I uploaded the project files to another hosting site and it works! Could it be that the previous domain is now blocked?
Please read the other posts, dude... we're all waiting for the FB to fix the issue...

Facebook connect, auto prompt for login

I have added a login button to my site anad added scope to publish actions as per guide i found here: developers.facebook.com/docs/reference/plugins/login/ and this works fine but my question is: How can i have same function but this prompt to show to users without needing to click on the Login Button.
If user has not installed app, he would be prompted automatically to install it.
Thanks for any help.
Use FB.getLoginStatus of the JavaScript SDK to see if you have a user connected to your app visiting your page. If not, redirect them to the server-side auth dialog (using client-side auth would not be a good idea, since most browsers will block a popup that’s opened without any actual user interaction).

When I use the facebook javascript SDK for authentication it fails on mobile phones and ipad

Javascript authentication works great on browsers but once I use the website on mobile, I always get this error on the login popup.
Sorry, the application you are using is misconfigured for Facebook integration. Please download the newest version of the application.
Instead of showing the usual login popup, it goes to m.facebook.com and it produces this error. Whats interesting is clicking on the spanish link, makes it work again.
--EDIT--
After doing some research and tinkering, ive nailed it down to this:
<fb:login-button registration-url="http://www.example.com/page#register" onlogin="authenticate.facebookLoginCallBack()"></fb:login-button>
Its possible the pound sign blows it up. I need the pound sign because i dont want to redirect off the page,instead i want to trigger a js registration popup.
My guess is that the # gets into the redirect-url, and then must somehow get transformed again on its way to getting redirect to m.facebook.com and that makes it fail there.
--EDIT--
I thought about redoing the flow by creating my own button and calling FB.login, but there is no way to tell the API to stop at login, and load my own registration. The problem is summed up here Registration flow using FB.login
Realistically it seems we are only provided with one option here:
https://developers.facebook.com/docs/plugins/registration/
Login + Registration Flows
and it doesnt work in my situtation
VISUALS
Typically the user clicks on this button
Then they see this dialog. (Notice it says www.facebook.com in the url)
But they see this dialog on mobile. (This is loading from m.facebook.com)

Facebook Connect Registration "Undo" Popup

I m using facebook registration plugin for my site registration. when i try to click register a new window opens and shows the text quoted below. How to block this window?? Help me out.
"You've just registered for {app_name} using your Facebook account.
If you didn't mean to do this, you can undo this below."
Thanks!!!
You can't block the window, it's a part of Facebook's system, not yours. Also, I'm sure if you did find a way to block it, it would be in violation of Facebook's API ToS.