Google plus share using php - google-plus

Is it possible to share some user activities (some url) to his google+ account directly with PHP (Not like a share button and having an popups or redirections)?
Please suggest me a best practice for doing the same.

Currently, it is only possible with the official Google+ Share Link, but this will render a pop-up.
https://developers.google.com/+/plugins/share/#sharelink

Google+ does not allow for direct writing to a user's stream without a user's direct interaction. You can write to a user's Google+ history after they've approved your application to do so and then the user can choose whether or not to share the moments to their circles or publicly.
The Google+ history is still in developer preview.

Related

Google Play Games OAuth-2: app visibility on Google+

I'm trying to resolve an issue regarding Google+ and authorizing users for an app using Google OAuth-2. More specifically, I find the authorization is successful when the user presses Accept on the consent screen; using the oauth playground and the auth/games scope, that looks like: http://retrofist.com/temp/Auth_01.png
However, if I then check my app privileges at plus.google.com/apps, I see the playground listed as visible to 'Only You': http://retrofist.com/temp/Auth_02.png - even though 'Anyone on the web' was selected on the consent screen. As I'm using Google Play Games for leaderboards, the result is that no one can see any leaderboard entries until they have manually corrected this to 'Public' visibility.
Can anyone explain a reason or workaround for this? Many thanks.
I observed similar issues, my scores was not published publicly to the leaderboard of the game. I then realized that, this is only for users whose email is defined as tester email. I could see the scores as publicly posted after deleting those emails from tester list.

Is it possible to login as a page using Google+ Login

Is it possible to use Google+ login page to allow users to login as pages to the site?
Otherwise, is there an API to get information about a logged in user pages? Or do I need to request access to Pages API?
In some cases, this is possible. However, the user would need to register a password on their page, which, according to the help topic, "is currently not available to pages owned by Google Apps accounts or users under the age of 18". I don't believe most people have this set up. You could request having such people set this up, but if they fall under that group they would be out of luck.
As such, I would recommend that you look for another way of doing this.

How can I upload a profile picture to Google Plus via API?

I'm trying to build a system which has a tool to upload profile picture to other networks. Twitter have an API point for it, Facebook have some "tricks", but my question is: there is a way to make this on Google +?
I checked the API (https://developers.google.com/+/api/latest/) and didn't found anything, but at Facebook, for example, I can post the picture to a specific album and then send the user to an window to redefine the profile pic. In Google+ I've this option too? What else I can do in this case?
I found something older that permits the upload of new pictures at a Google Apps Profile (https://developers.google.com/google-apps/profiles/#Updating). Maybe this is the path but, as far as I know, the Google+ is the new Google Profile =\

Google+ new UI does not allow to share posts in LinkedIn

Did you notice that Google+ new user interface is lacking the ability
to share posts on LinkedIn?
Do you know if there is something I need to do to allow it?
Google+ never had the ability to share posts to LinkedIn.
I suspect that you have a chrome extension that provided this functionality, like Extended Share. The updated UI may require an update to the extension.

How publish Hootsuite on Google+ Pages stream?

I want to achieve the same as Hootsuite, publish a post in a PAGE STREAM. But I don't know even where to look for it. It looks like Hootsuite is using the API, because they prompt an open Auth authentication where the user selects and authorize what this APP can do with his data.
With the PHP client I've been able of posting in the user APP stream (different from the user main stream) using moments class, and get data from the user using plus class client, both from the PHP library available here: https://code.google.com/p/google-api-php-client/source/checkout
But I don't know how to write in a user's page. Does anyone knows or can point me where to go to, at least, publish on main Google+ page stream as Hootsuite? Thanks.
The Google+ Pages API is currently available to a limited number of parters only, including HootSuite. You can request access to the API at https://developers.google.com/+/api/pages-signup but there is no guarantee when, or even if, Google will approve your access.
Although you can use the HootSuite console to post messages to Google+ pages (see http://hootsuite.com/google+), it isn't clear if you can use the HootSuite API to do so.