Want to share image via google+ api - image

This is my code
<button
class="g-interactivepost"
data-contenturl="http://www.pubandbar-network.co.uk/nightlife_pubs-bars.html"
data-clientid="102180630313-ef89c6gjgahgitf0s9qknhrl5mo351ga.apps.googleusercontent.com"
data-prefilltext="Engage your users today, create a Google+ page for your business."
data-calltoactionurl="http://www.pubandbar-network.co.uk/nightlife_pubs-bars.html"
data-cookiepolicy="single_host_origin"> Share
</button>
I want to share image with this. Please help me how can I share image via google+ API.
My second question is :
Is there any way in php to share on google+ automatically?

The images that appear in shares are calculated by Google based on the schema data on your page. As an example, you can use the snippet configuration tool to configure the image and description for your share. When you set the content-url to point to the page with schema, Google will use that schema microdata to set the image and so forth.
You cannot share programmatically to Google+ except with Google+ App Activities.

Related

Google Places Photos & copyrights

I created a coordinates website that shows different information about a location. I pull this information from API's.
One of the things I show on the website are location photos that I pull from Google Places API.
Now I've received an e-mail from a professional photographer who says I'm infringing on his copyrights by showing the photo on my page. I've told him I pull the photo from Google Places and that he should contact Google if he doesn't want his photo on sites.
His reply is that I as website owner are responsible for the content and that Google has nothing to do with it. I find this very hard to believe...
What do you guys think? Any advice? Can ask Google for help?
The Google Places API has this to say about attribution:
Photos returned by the Photo service are sourced from a variety of locations, including business owners and Google+ users contributed photos. In most cases, these photos can be used without attribution, or will have the required attribution included as a part of the image. However, if the returned photo element includes a value in the html_attributions field, you will have to include the additional attribution in your application wherever you display the image.
Did the photo in question have anything in the html_attributions field? If not, then you're correct that the owner needs to talk to Google. If it does and you didn't display it, then you are in breach of copyright.

Embed not working with google analytics api

In the laravel project I'm using google api that fetches google analytics report when user logins with his google analytics a/c. But when I try to give embed functionality where user can use it in his websites to show fragments like current online users, country-specific users,etc. It isn't working due to some issues.
simple embed code that user is supposed to fetch data anywhere outside my website:
<embed src="http://www.example.com/shareEmbed/id">
while I'm testing and pasting the above code in different page, it shows login error as in below image
please help me!

Set Google+ Profile Picture for Google Apps for Business Users

We have company pictures that we would like to set as everyone's profile pictures. We're able to set their directory/contact profile picture with no real issues, however, we can't figure out how to change their Google+ profile picture.
Is there any way to change their profile pictures with the Google+ API? Or without using Google+ (aside from logging into every account :P )
I've done a general search here on stack and Google, but could only find old sources or people wanting to get profile pictures.
Google+ Domains API does not have a method for updating people. If you would like one please open a feature request.

Add user review to Google map from my application(Android)

I am trying to create a location-based services Android application. I had successfully getting the user reviews from Google Places API by following the guidance from this link.
https://developers.google.com/places/documentation/details
I also found many posts regarding how to get user reviews from Google Places. But Now I want to create a function which user can insert reviews from my application. Is there anyway to do that?
Thanks.
No. There is no API for writing review. Also the Google+ mobile URL doesn't have the write review option from last year. Its a bug , but Google is not fixing this.
There is only one way to write review is through desktop URL. I have a similar location base app in play store where I have done some workaround to show desktop site to write review.

Get Google Page main photo?

I am using Google Places to render some hotels from a specific area in a website. I was able to get the details like:
https://maps.googleapis.com/maps/api/place/details/json?reference=CoQBfAAAAGnd67oCT886cIfOC8m57hGAHyf9saAs8hueRcbguA22mPcazjkk23BWMUOgvrigofuwM1HfRGpLcFtF1WXxv3_n8gb6WgXfaqQFbA0U4_ytSyLyksipx2tjwWU-3EW39ePYtpYhiCwRq9xlNI72Ah4Wv0WytqiJOTF49iTBwCD9EhD1ez5NJDr-pZMI9WagObi3GhQmn9Dum95KN61ZKamJ27wUoJxjvQ&sensor=true&key=[google_key]
If you see the result, it also has a url to official google page.
Is there any way to get the photo of this place from there?
Because the icon parameter does not have the image from here but a specific google image which is the same for all lodging types places.
The Google Places API does not currently support this feature. If you believe this would be a useful feature you can submit a `Places API - Feature Request' here:
http://code.google.com/p/gmaps-api-issues/issues/entry?template=Places%20API%20-%20Feature%20Request
Google Places API Photos like Google Maps Photo. It is not Business Photo.

Resources