Accessing Google Photos using only a sharing link - google-photos-api

I am trying to access a Google Photos album that has been shared via a sharing link. A UX user can access such an album without authenticating, simply by following the sharing link.
However, all APIs in Google Photos API that I can find require the user's OAuth token, and I do not wish to require the users to log in (as they are not required to do so in a browser).
I tried scraping the HTML output returned by Google Photos in response to the link, but it is quite difficult (not to mention fragile).
Any suggestions?

Related

How to get long-lived embeddable link from Sharepoint / Onedrive file picker?

In our web app, we enable users to upload files, and preview them. We also enable them to upload from their cloud drives, such as Google Drive, DropBox, and OneDrive.Most of our users are using OneDrive for businesses.
In order to show the selected files, we are saving embeddable links from the cloud drives, and embedding them in an iframe, that way the permissions, and authorization are in the cloud derive control.
I tried using the request: POST /drives/{driveId}/items/{itemId}/preview, after the user selects the file from the file picker, and I using the getUrl field from the response payload to embed the file into an iframe. (the getURL as src)
I noticed that the URL contains access_token, and I deleted it before saving it, and I noticed that the iframe still works fine, and allows only users with permission to see the file, is this is a good usage of that?
In the Graph API docs, driveItem:preview mention that the driveItem:preview request generates a short-lived URL, I would like to know what is the expiration of the link (hour, day, week, month, etc..).
is it short-lived only because of the access_token, and authorized users in Sharepoint/Onedrive will have access for the long term?
Are there any pitfalls that I didn't notice?
I have to be sure that it is a robust way for using that otherwise, I will save broken links, and the users will have to pick again all the files..

How to get friend's feed using Instagram Graph API or Instagram Basic Display API?

After one day instagram will disable Legacy API. There will be two official ways to access Instagram data - Instagram Graph API with graph.facebook.com base and the Instagram Basic Display API with api.instagram.com and graph.instagram.com url bases.
How to get friend's profile feed with new ways ?
Seems like old way was GET https://api.instagram.com/v1/users/{user-id}/media/recent
I tried GET https://graph.instagram.com/{user-id}/media?fields=id,caption&access_token={access_koken} endpoint but I got following error:
{"error":{"message":"Unsupported get request. Object with ID
'{user-id}' does not exist, cannot be loaded due to missing
permissions, or does not support this
operation","type":"IGApiException","code":100,"error_subcode":33,"fbtrace_id":"AfL9LNy4QaaNREWCjgNBEFW"}}
I presume you did replace {user-id} with an actual user id ? Generally speaking you can use the word "me" in it's place.
https://graph.instagram.com/me/media?fields=id,caption&access_token=<your access token>
If your application was an old Instagram "client" app then I think that it will no longer work after the deadline. We have had to create a new Instagram app via a Facebook application (https://developers.facebook.com/apps/).
From there you can add "Products" and "Instagram" is one of those products. You have to go through an app review having requested "instagram_user_profile" and "instagram_user_media" in order to start using the app in live mode, but you can add testers whilst you are developing it. This is found via the "Basic Display" link (under the Instagram product) where you will also find you app id and secret.

Is there a way to access photo albums from public link?

I'm creating a web application that accesses your photos. In order to make my application accessible to anyone who doesn't have a google account, I would like to allow the application to read and edit photos from public albums using their shared URL. This seems like something that should be easy to do, since all the authentication already happened when you made the album public, however, there doesn't seem to be any documentation about this online.
I've looked online for this but no information was there. Right now I'm writing my application in Node.js and working on authenticating with OAuth. I hope that there is something similar to the google maps API so that I don't need to provide authentication to edit a public album. If I have to use OAuth, then I can but I figured accessing a public album shouldn't be very difficult.
Thank you for helping me out.
No, there is not.
I have an application (in PHP) that connects to Google Photos through the API (after OAuth), and you could only get public link of albums created by the same application, not the ones created before, even you make it public from the Google Photos User Interface.

Get reviews/ratings from Facebook pages without page access token

I am trying to retrieve reviews from the Facebook page, but unable to get reviews as it required the access token.
Is there any way to get reviews from the Facebook page using page id without page access token?
I have found many questions asked earlier for the same thing but that still won't help me.
I also got the answer to getting reviews using places, can anyone know how to do that?
Or is there any paid service for this?
Checked following links but unable to achieve the correct result that I want:
Facebook Access Token for Pages
Get facebook public page rating and review
Thanks
Is there any way to get reviews from the Facebook page using page id without page access token?
No, there is not.
If you do not have admin access to the page, then you can not access the reviews via API.
Or is there any paid service for this?
Any such service would be in violation of Facebook terms, if they acquired that data via scraping.

Do I have to use the Instagram API?

I was thinking of retrieving a user's Instagram news feed, however the Instagram API doesn't allow you to do that because some users may be private. However, what if I just used an HTTP connection and logged in as the user then went to the user's 'home' page to get their news feed? I think this would work, but I'm not sure about the legalities behind doing so.
See their Terms of Use. Specifically...
We prohibit crawling, scraping, caching or otherwise accessing any
content on the Service via automated means, including but not limited
to, user profiles and photos (except as may be the result of standard
search engine protocols or technologies used by a search engine with
Instagram's express consent).

Resources