Show Image from sharepoint list - image

I'm developing a flutter app where i want to show images from sharepoint. My initial idea was to use Image.Network() using a public link of the photo (but this is not viable, with drive from google no problem).
Can this be done with NetworkImage using credentials?
Thanks in advance!!

If you are trying to access images from google drive which having no public URL then it will result in an error.
What you will have to do is to provide an access token on the account to access them like this.
NetworkImage(imgUrl, headers: {"Authorization": "Bearer ${accessToken}"})

Related

Authenticating PDF streaming via Laravel API

I have a Laravel API that generates a pdf. I am using laravel passport for the pdf. I want to stream the pdf in the browser not download it. I currently generate a pdf but it is open to the world, anybody would be able to to access the pdf. I want to add authentication for it. A user should be able to see his/her pdfs generated by my app and not any other user's pdfs.
My idea so far is to generate a personal access token for the user and pass it via the url.
Is this a good idea? Any other ideas I should consider on how to accomplish this?
Use laravel authentication to stop unauthorized access to routes, here is the documentation how you can do that,
https://laravel.com/docs/5.6/authentication

Preview of google drive files without login

How we can get preview of google drive files in web without login into google account. In current scenario only public files are visible through embed link, we need to show preview of file in iframe which are not public and without login.
Here in lies the difference between the term "public" and "private". The way google authentication works is that any data that is public is free for anyone to see. If you set the file to public anyone can open it without being logged in or authenticated to Google.
Private files on the other hand you must have permission to access. There is no way to preview a file you do not have permissions to access. There is no workaround for this.
I think "Publish" is what is you need. The file can still be "Private".
Publish and embed Google Docs, Sheets, Slides & Forms
To make a document, spreadsheet, or presentation, available for a large audience to see, publish a file. After you publish your file, you’ll have a URL that you can send to anyone or embed into your website.

Picasa API Authentication

I'm making a website for a friend where he can view photos from his wedding. I created a Google account, and loaded the photos to that account's Picasa. I then wrote a small PHP app that gets the URLs for all the images in that one album, and makes a nice little viewer for him.
I'm authenticating using oauth2, but I don't want anyone who goes to this app to have to sign in to that Google account to authorize the app to get the photo URLs.
My question is, what would be the best way to authorize the Google account on the server without any input from the user? I could then make my own application specific password that my friend can give to people so that they can see the photos, and no one has to worry about the Google account username and password but me.
In the end, I made the album viewable to anyone with the link. Now on my PHP parses the xml from the album link, and the account information does not have to be used at all.

Post Image through Graph API change Via Link

I am using a facebook php SDK to post image to users album using the user access token. First we will generate the token and then post the image. My issue is that posting image works fine but below each image on right side, facebook adds a link 'via MY APPLICATION NAME'.This link redirects user to my application page in facebook (http://www.facebook.com/apps/application.php?id=APPLICATION ID). I want to change this link to point to my personal website URL (www.abc.com).
Please let me know if this is possible.
I've seen other apps do it, and am looking for the same thing. I've glanced over all the app settings, and am currently reading the api trying to figure it out. It's probably going to be something stupid like deleting all the other urls to force it to default to your site url in the app settings...Let me know if you have any luck with this.

Facebook Graph API Question: How can i get permanent permission/access token to display a public photo album on a webpage?

I know it's possible to display public images once I have the access token, but how do I go about getting it? I found the facebook dev docs to be kind've confusing when it comes to extended permissions.
Do i need to somehow register the image gallery/portfolio as an app and have the facebook user who's gallery it is allow it?
Thanks for any help on this!
If I'm not mistaken you just need offline_access extended permission - then your token will (nearly) never expire
based on
http://developers.facebook.com/docs/authentication/permissions

Resources