google-plus

Android Google Login Button and Facebook sdk 4+ Button Layout

只愿长相守 提交于 2019-12-09 14:40:25
问题 I Am developing an application which use google and facebook integration ...I want to fix height and width of those button...and i want to set Button Text Manualy... i had tried so far <com.facebook.login.widget.LoginButton xmlns:fb="http://schemas.android.com/apk/res-auto" android:id="@+id/connectWithFbButton" android:layout_width="match_parent" android:layout_height="50dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:text="@string/fbloginText" android:layout

Google+ Login: How to logout - using (gapi.auth.signOut)

一曲冷凌霜 提交于 2019-12-09 11:17:24
问题 I need a little help on how to create a sign out function from a website where you have sign in using your Google+ account. The documentation states you should use the gapi.auth.signOut function https://developers.google.com/+/web/signin/sign-out But being a newbie to javascript I don't seem to have any luck. This is my code - the sign out function is the part at the bottom. What am I doing wrong? <script> function signinCallback(authResult) { if (authResult['status']['signed_in']) { //

Secure Google Plus Sign-in into Web App via Android App

筅森魡賤 提交于 2019-12-09 06:45:57
问题 I'm developing an Android app and I want users to sign-in to my app using Google+ Sign-In. At the moment, I pass the user's name which I get from Google+ within a PHP login script. The script loads a new session with the user's ID. Currently, the site is highly insecure: anyone who knows another user's username can potentially login as them. What is a secure way to do this? How do I authorize a user against my server? It looks like to me, Google+ was purely a social networking API... 回答1:

Ask requestVisibleActions permission using Passport.js for moment insertion in Google+ API

亡梦爱人 提交于 2019-12-09 04:27:27
I'm working on a Node.js application that uses Passport.js for authenticating with Google Plus. In a later stage now, we have introduced of adding activities using Google+'s moment.insert to the user's Google+ feed when they leave reviews at our site. Posting using moment.insert needs a special permission called requestvisibleactions . The passport.js documentation doesn't say how I can ask for such permissions while logging in. My current auth handler setup is like this: app.get('/auth/google', redirect, passport.authenticate('google', { scope: ['https://www.googleapis.com/auth/userinfo

Access Not Configured. The API (Google+ API) is not enabled for your project. Please use the Google Developers Console to update your configuration

雨燕双飞 提交于 2019-12-09 03:15:22
问题 Giving error even I enabled Google+ API in Google Developers Console Code:403 "message": "Access Not Configured. The API (Google+ API) is not enabled for your project. Please use the Google Developers Console to update your configuration." 回答1: You have not enabled the Google+ API for your project in the Google Developer console . Make sure that its enabled and double check that your code is using the correct client _id and clientsecret , that match this project. My tutorial on how to enable

Google/Firebase Authentication no displayName or photoURL for iOS

回眸只為那壹抹淺笑 提交于 2019-12-08 22:35:27
问题 I am using Ionic2 and GooglePlus Authentication. I can sign in and it creates a User with a uid in the Firebase Authentication list as expected. When I do this: GooglePlus.login({ 'webClientId': webClientId, 'offline': true }).then(googleData => { Where the webClientId matches the Client ID in the iOS Credential below. Problem: However, for iOS , the googleData does contain an emailAddress and uid , but the displayName and photoURL are null . More Info: I do have an iOS Credential set up with

Which Google APIs can be accessed with service account authorization?

十年热恋 提交于 2019-12-08 17:40:27
问题 I infer from the Google API documentation, that not all of the advertised Google services are available to service accounts. e.g. In the announcement for service accounts, this was part of the text: `Service accounts are currently supported by the following Google developer services: Google Cloud Storage Google Prediction API Google URL Shortener Google OAuth 2.0 Authorization Server Google APIs Console Google APIs Client Libraries for Python, Java, and PHP I understand the first three refer

Click a button made from div with JavaScript?

家住魔仙堡 提交于 2019-12-08 17:38:14
问题 In Google+, the button that is used to post a comment is made from a div: <div role="button" id=":1vq.post" class="d-s-r tk3N6e-e tk3N6e-e-qc" aria-disabled="false" style="-webkit-user-select: none; " tabindex="0">Post comment</div> I think I can click it with: document.getElementById(":1vq.post").click(); But it says that the element have no attribute click . and I found that onclick is null. So how could I click the button with JavaScript? 回答1: EDIT: After a chat with wong2 who started this

Google plus for android: Invalid Credentials

无人久伴 提交于 2019-12-08 17:12:48
问题 I am using the followin code to get an Access Token, after connecting to Google+, to get profile info and e-mail: String sAccessToken = GoogleAuthUtil.getToken(this,mPlusClient.getAccountName() + "", "oauth2:" + Scopes.PLUS_PROFILE + " https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"); This Access Token I am not storing and trying to re-use. Instead I ask for an Access Token everytime, expecting a new(different) Token, so that I don't need to

SERVICE_VERSION_UPDATE_REQUIRED and Google play service out of date while integrating Google Plus in android

淺唱寂寞╮ 提交于 2019-12-08 16:33:40
问题 I have integrated Google Plus in Android App.I am using Android SDK version 4.2.2. But I got this error while performing sharing post on google plus : Google Plus Service Out of date and ConnectionResult {statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null } I want to run Google Plus Posting on emulator, not on device. Any help will be appreciated. 回答1: I got this error simply because Google Play Services actually were out of date when running on the emulator. Apparently Google hasn't