google-plus

adding cocoapod dependencies to a cocoa touch framework

一笑奈何 提交于 2019-12-05 23:29:11
问题 I’m trying to work out how to add cocoa pod dependencies to an iOS app that has an embedded cocoa touch framework. I have my podfile set up like this: link_with [‘TestApp’, ‘TestAppFramework’] platform :ios, '8.0' source 'https://github.com/CocoaPods/Specs.git' pod 'google-plus-ios-sdk', '~> 1.7' Then I add a view controller with a sign in button as per the instructions here: https://developers.google.com/+/mobile/ios/sign-in and everything compiles with no problems. If I then run the app it

Error fetching OAuth2 access token : 500 Error

六眼飞鱼酱① 提交于 2019-12-05 23:11:41
I am being randomly bugged by the following error message: This occurs when php library tries to obtain the access token line 112. Sometimes my code obtains access token in first try, sometimes I need to refresh the URL containing 'code' as get parameter multiple times before access token is obtained. This error is coming frequently for last 3-4 days. Fatal error: Uncaught exception 'apiAuthException' with message 'Error fetching OAuth2 access token, message: '<HTML> <HEAD> <TITLE>Error processing OAuth 2 request</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Error processing

Google plus sign-in for xcode share extension

让人想犯罪 __ 提交于 2019-12-05 21:46:30
I’m writing an iOS app to share web page links by email, and as part of it I want users to be able to sign in to google plus. I’ve got the containing app working fine using the instructions from here: https://developers.google.com/+/mobile/ios/sign-in and now I’m trying to add a share extension that can also access the user’s google+ profile. I started off by trying to add the sign in button in to the share extension, but I don’t think that’s going to work because after clicking the button you’re taken out of the app to the browser to accept permissions, and then there’s no way to redirect

webView:didFailLoadWithError -1004: Could not connect to the server while connecting google plus in Phonegap ios

会有一股神秘感。 提交于 2019-12-05 19:26:46
I am getting "webView:didFailLoadWithError -1004: Could not connect to the server" error while accepting google plus authentication before getting profile data. These code was working properly before. Now i am facing these error. No idea why i am not able to connect.Please help me to get rid of these error.Below is my code for integrating google plus in Phonegap (3.4.0) for ios. var googleapi = { //alert('ready'); authorize: function(options) { var deferred = $.Deferred(); //Build the OAuth consent page URL var authUrl = 'https://accounts.google.com/o/oauth2/auth?' + $.param({ client_id:

G+ sdk giving login error?

耗尽温柔 提交于 2019-12-05 15:44:19
问题 I have implemented Google Plus Api and login as it is given in the site. But it is giving problem after login when I click on allow Access as shown below: The following message appears : My Code is as follows,pls tell me If anything left: - (void)viewDidLoad { self.signInButton.delegate = self; self.signInButton.clientID = kClientId; self.signInButton.scope = [NSArray arrayWithObjects: @"https://www.googleapis.com/auth/plus.me", nil]; SLNetworkAppDelegate *appDelegate = (SLNetworkAppDelegate*

Unsupported content with type: multipart/form-data in google plus api oauth2

心不动则不痛 提交于 2019-12-05 15:41:08
I am trying to sign in with google plus Api in my web app. I searched on it from https://developers.google.com/oauthplayground/https://developers.google.com/oauthplayground/ and I applied them. When I request to https://www.googleapis.com/oauth2/v3/token , it returns { "error": "internal_failure", "error_description": "Unsupported content with type: multipart/form-data; boundary=----------------------------5dd1639f2986" } I am putting my code snippets which are doing the request (as client id and secret as star) I dont understand it, maybe you can help. if(isset($_GET['code'])) { // try to get

Validating Google ID tokens in C#

ぐ巨炮叔叔 提交于 2019-12-05 14:25:03
问题 I need to validate a Google ID token passed from a mobile device at my ASP.NET web api. Google have some sample code here but it relies on a JWT NuGet package which is .Net 4.5 only (I am using C#/.Net 4.0). Is anyone aware of any samples which do this without these packages or has achieved this themselves? The use of the package makes it very difficult to work out what I need to do without it. 回答1: According to this github issue, you can now use GoogleJsonWebSignature.ValidateAsync method to

google+ share and onendinteraction - no confirm

淺唱寂寞╮ 提交于 2019-12-05 11:10:21
I'm setting up a google+ share button, and want to know when someone has shared the link so that I can perform an action. You can register a callback on the share button using the onendinteraction attribute, and the documentation states that this will be called whenever the share box is closed and whenever the share is completed. My function is being called when the window is closed, but not when the link is actually shared: function redirectGooglePlus(jsonParam) { alert(jsonParam.type); } <div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60" data-href=

Google OAuth2 - access token & refresh token -> invalid_grant/Code was already redeemed

心已入冬 提交于 2019-12-05 08:14:17
My goal is to have some kind of long lived access token so that my Android app can read the events of a user's Google Calendar for the day without requiring user approval every time. I am able to generate -- what I think is -- a one-time authorization code; however, when I send this to my server side, app engine, I get the following error response: 400 OK { "error" : "invalid_grant", "error_description" : "Code was already redeemed." } That is the exception that is being thrown. I'm just catching it and sending it back to myself as a way of debugging. The one-time code I get starts with 4/VUr

No data returned in intent while using Google+

自作多情 提交于 2019-12-05 05:59:07
I am working on an android application. I require following: 1.Post something on google plus. 2.After sometime I want to count +1's and total shares of my post. I am doing it like this( as suggested in samples given in android sdk ) String action = "/?view=true"; Uri callToActionUrl = Uri.parse(getString(R.string.plus_example_deep_link_url) + action); String callToActionDeepLinkId = getString(R.string.plus_example_deep_link_id) + action; // Create an interactive post builder. PlusShare.Builder builder = new PlusShare.Builder(this, mPlusClient); // Set call-to-action metadata. builder