Select some photos from witnin an album and Create a url to share them using Google Photo APIs - google-photos

I managed to create a Google Photo Album and upload many photos to this album using the Google Photo API.
I need also using Google Photo API again, to select only a couple of these photos and create a url in order to share this.
I would appreciate any help,
Nick

Related

Fetch a random photo from Google Photos with API

I want to write an app that fetches a random photo from my Google Photos set of photos using the Google Photos API. This is the new Google Photos, not the old one that was linked to a Google Drive.
In my review of the API Docs, it seems that you can list albums, and perhaps list what the albums contain, but it's not obvious to me how to download a photo itself. Can anyone figure it out?
Try with this API: https://developers.google.com/photos/library/reference/rest/v1/mediaItems/list
It lets you list the photos from your library and returns two parameters, productUrl and baseUrl, that you could use to get the photo.

Organize photos into albums using API

The new Google Photos API seems to allow the creation of albums and uploading images to albums, but I'd like to organize existing photos in Google Photos into new albums; is this currently possible somehow?

How to get direct permanent link to public image on Google Photos?

I have Google Photo public album and I want to receive direct links for photos form this album. This links I'll use on my blog web pages. How I can to do it?
P.S.: I know that Picasa Web Albums had this feature.
At this time Google actively changes its image service behavior. Now, there is not any algorithms how to receive direct and permanent links to your shared photos. The URLs are received by the right-button click, like https://lh3.googleusercontent.com/(LONGLONGCODE...)=w800-h600-no, are temporary and live one-two days and then will be closed.
You can try new Google service - Google Archive Album. This service was created as holder for albums from the deleted Picasa service. But it contains photos and albums from Google Photo too. The Google Archive Album have two greats advantages:
links are much shorter the from those of Google Photos,
this links are permanent!
For working with Google Archive Album you need to follow rules:
create standard (NOT PUBLIC) album in Google Photos.
go to Google Archive Album and make sure that you see the new album.
add to album required photos and only now change its type to the public by creating the shared link to it.
again go to Google Archive Album, open your album.
click on first photo.
right-clink on photo image and copy link to the clipboard.
insert received link where you need.
repeat steps 5-7 for others photos.
voilĂ !
But how long time Google Archive Album will working I don't know :(
P.S.: If you don't know - URL links from Google Photos and Google Archive Album can be tuned. For detail reads the special site.

Is there an API to create albums and upload photos to Pages and groups?

In our APP we are successfully creating albums and uploading photos to users accounts however there does not seem to be a way to create albums and upload photos to albums in Pages and groups.
Looks like we can publish photos to streams of pages and groups but not really manage albums.
Does anyone know how to do this?
You can totally create create albums and post photos to Pages. There is a post on this here:
https://developers.facebook.com/blog/post/498/
To post to a page you just replace the user id with the page id, and make sure you have requested the publish_stream permission.
However, up until recently it seems that groups did not have albums and you could only publish a photo to the group timeline.
Groups now have albums, but it seems like you can't create them. When I try to I get a permissions error. Has anyone else managed to create an album for a facebook group?

Photos uploaded to Facebook Page via Graph API cannot be tagged on Facebook (website) by non admin users

If I upload images to an album on my facebook PAGE (not profile) via facebooks website then other (non admin) users of that page can tag themselves in the photos. I have set that up in my page preferences.
"Posting Ability: People can add tags to photos by (PAGE NAME)"
However if I use the GRAPH API to upload the photos to an album on my facebook PAGE then only admin users can tag themselves. I am sure this was not always the case.
Here is an example of two images in the same album, one can be tagged the other not!
Image uploaded by the api:
https://www.facebook.com/photo.php?fbid=310796772303725&set=a.310794905637245.113595.170367249680012&type=3&theater
Image uploaded via the facebook website:
https://www.facebook.com/photo.php?fbid=342651955784873&set=a.310794905637245.113595.170367249680012&type=3&theater
I would be very grateful if anyone could let me know why this is happening
The solution is rather simple. The non-admin user must have Liked the page before they can tag someone. I Liked your page and I had the option to tag users in both images...