google-plus

Sharing an image with Google+ app using Intent.ACTION_SEND and Intent.EXTRA_STREAM

回眸只為那壹抹淺笑 提交于 2019-12-29 03:12:05
问题 My app generates images that a user can save or share with others. The code below works for most apps: Messenger, Facebook, Dropbox, email, etc. Meaning, the image is loaded by the chosen app, and a user can share the image successfully with that app. Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("image/png"); File o = new File(dir, "file.png"); intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(o)); startActivity(Intent.createChooser(intent , "Send options")); However, when I

Google+ unable to insert moment

故事扮演 提交于 2019-12-28 13:58:10
问题 Trying example from g+ documentation with Authorize requests using OAuth 2.0: ON . Got Unauthorized as result. Here's output: Request POST https://www.googleapis.com/plus/v1/people/me/moments/vault?debug=true&key={YOUR_API_KEY} Content-Type: application/json Authorization: Bearer *my_token* X-JavaScript-User-Agent: Google APIs Explorer { "target": { "url": "https://developers.google.com/+/web/snippet/examples/thing" }, "type": "http://schemas.google.com/AddActivity" } Response 401

Google+ unable to insert moment

一曲冷凌霜 提交于 2019-12-28 13:56:11
问题 Trying example from g+ documentation with Authorize requests using OAuth 2.0: ON . Got Unauthorized as result. Here's output: Request POST https://www.googleapis.com/plus/v1/people/me/moments/vault?debug=true&key={YOUR_API_KEY} Content-Type: application/json Authorization: Bearer *my_token* X-JavaScript-User-Agent: Google APIs Explorer { "target": { "url": "https://developers.google.com/+/web/snippet/examples/thing" }, "type": "http://schemas.google.com/AddActivity" } Response 401

Google Plus sharing from android app

被刻印的时光 ゝ 提交于 2019-12-28 03:10:12
问题 I have been trying to post on google plus stream since morning, but it does not getting posted all contents specified in deeplinkid only the content inside setText() gets posted. here is my code, Intent shareIntent = new PlusShare.Builder(this) .setText("Hello Android!") .setType("image/png") .setContentDeepLinkId(offrdetails_data.get(0).offerLink, offrdetails_data.get(0).dealTitle, offrdetails_data.get(0).dealDescription, Uri.parse(offrdetails_data.get(0).dealImage)) .getIntent();

Google Hangouts API: Can I start an “On Air” Hangout?

荒凉一梦 提交于 2019-12-28 03:10:08
问题 Is there a way to start an "On Air" hangout via the API? I've got my application created and working great, however I need the hangout's embed code for my customers. I can't seem to find any documentation on how to start a hangout like this via the hangout button. (https://developers.google.com/+/hangouts/button) 回答1: It is not currently possible to embed a hangout. With the Hangout button, though, the start screen includes the standard checkbox to make the Hangout On Air. developers.google

“Calling this from your main thread can lead to deadlock and/or ANRs while getting accesToken” from GoogleAuthUtil(Google Plus integration in Android)

↘锁芯ラ 提交于 2019-12-28 02:52:12
问题 In my android application, I am trying to get AccessToken from GoogleAuthUtil as below : accessToken = GoogleAuthUtil.getToken(this, mPlusClient.getAccountName(), "oauth2:" + SCOPES); But At this line I am gettting error as below : E/GoogleAuthUtil(4696): Calling this from your main thread can lead to deadlock and/or ANRs E/GoogleAuthUtil(4696): java.lang.IllegalStateException: calling this from your main thread can lead to deadlock E/GoogleAuthUtil(4696): at com.google.android.gms.auth

google plus api: “insufficientPermissions” error

眉间皱痕 提交于 2019-12-27 20:09:51
问题 I am searching the google plus with api Here is my Url: https://www.googleapis.com/plus/v1/activities?query=internet%20marketing&access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx here is response: { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } } Here is my API CONSOLE screen http://i.stack.imgur.com/jO27J.png Can Anyone tell what permission I need to setup for my app

google plus api: “insufficientPermissions” error

十年热恋 提交于 2019-12-27 20:09:48
问题 I am searching the google plus with api Here is my Url: https://www.googleapis.com/plus/v1/activities?query=internet%20marketing&access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx here is response: { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } } Here is my API CONSOLE screen http://i.stack.imgur.com/jO27J.png Can Anyone tell what permission I need to setup for my app

Google Plus Count url

坚强是说给别人听的谎言 提交于 2019-12-25 05:25:27
问题 I'm trying to get the count of plus one's I have for google plus, I am checking to see if I have the count right with this https://plusone.google.com/u/0/_/%2B1/fastbutton?count=true&url=MY_URL I see that google plus rejects my URL (doesn't return 0 or anything) I wanted to know if anyone can tell me if I have anything wrong in my url, I have these symbols in my url outside of letters and numbers : / . ? = & _ and my url is formatted like this (protocol)://(server [such as www]).(domain)/

Plus 1 button doesn't render properly in IE9

我的未来我决定 提交于 2019-12-25 05:07:32
问题 I noticed recently the Plus 1 button on my company's website doesn't render properly in IE 9 and 10. Looks perfect in Chrome, but can't seem to get it to show up in IE without a chunk being cut off the bottom of the button. Compatability Mode doesn't help. Any tricks to position or pad around the button so it shows up properly? I tried putting the code in table but that didn't help at all, nor does paragraph or break. Facebook Like button shows up correctly in both IE and Chrome. Windows