Using Flickr to Enable Images on a Site - php

Has anyone had success using Flickr to embed images that users can upload to my site, but that are hosted on Flickr?
Is something like this possible?
Thanks,
Alex

There is a flikr upload API:
http://www.flickr.com/services/api/upload.api.html
Have them upload their photos to your site, you can crop it or re-size it programatically with GD or imagemagick as needed, then use the flikr upload API to put it on your flickr account, then delete the original to save space, then embed it on the site.
This will save space for you. While also preventing your users from needing to get an account on another site, or having to leave your site to post photos, or figuring out how to link them back.

Related

Upload Images using Blogger Post Image API

Is there any way to upload images using blogger API? (https://developers.google.com/blogger/docs/3.0/using)
I have a web developer who is going through trouble to integrate Blogger API for uploading images to my site. I thought if I could be of any help at all to him.
Normally using Picasa the images upload to googleusercontent like this :
Link to a picasa image
But what I want is for it to be uploaded to this :
Link to a image uploaded from Blogger post
The developer is using PHP. I tried searching many sites but with no luck for a working version.
Any help is appreciated thanks.
The images uploaded to Blogger directly via the website (having the URL format of x.bp.blogspot.com) are also saved on Picasa behind the scenes.
The domains used by these images (like lh3.googleusercontent.com, 3.bp.blogspot.com ,1.bp.blogspot.com,2.bp.blogspot.com,4.bp.blogspot.com) are interchangeable in nature and all of them serve the same image.
For example, the image that is using the googleusercontent URL (For testing purpose, I uploaded an image using the Official Blogger Android app) -
https://lh3.googleusercontent.com/-VESDEmEh7EM/WpCZ_8qD_wI/AAAAAAAAYs0/XDWkxkEz7EUrGUBmpTSEKBGiynGrEKOygCHMYCw/s640/1519426035853.jpg
Can also be accessed by using bp.blogspot.com URLs, like -
https://4.bp.blogspot.com/-VESDEmEh7EM/WpCZ_8qD_wI/AAAAAAAAYs0/XDWkxkEz7EUrGUBmpTSEKBGiynGrEKOygCHMYCw/s640/1519426035853.jpg
If you still want to exclusively use the x.bp.blogspot.com format URLs for images in the Blog post, you can write a custom logic in your PHP application to replace all references of lh3.googleusercontent.com (that you got after uploading the images via Picasa API) with x.bp.blogspot.com URLs before creating the post via the API)

LinkedIn share API issue

I am making an app in order to post an image to LinkedIn.
The problem is that it's not working for images.
I use my uploaded image URL in submitted-image-url in order to post my image with a caption but unfortunately, it just uses a thumbnail of my image.
What can I do to post my image? By the way, I use PHP.
Currently, as of May, 2020, LinkedIn only supports the url parameter in its share URL. So, you'll have to share the image by making it a linkable file and then share the URL to the file, like so..
https://www.linkedin.com/sharing/share-offsite/?url={url}
Source: Microsoft LinkedIn Share URL Documentation.
If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check us out! Social Share URLs

How can I publish an image from url with Twitter API?

I'm trying to publish an image from URL with Twitter API and PHP but I can't do it.
I have seeked in many post but I could find only how to upload an image.
Is possible to do it?
As you have discovered, this is not possible.
One way around it is for you to download the image first, and then upload it.
For example
file_put_contents("temp-img.jpg", file_get_contents("http://example.com/flower.jpg"));
Then, using whichever Twitter library you have, you can post temp-img.jpgdirectly.

Control youtube's Overlay with api

i made a script to upload videos to youtube from a folder on my server, but now i want a way to control the overlay ads. i saw a video that has just like what i want.
here is the video link:
http://www.youtube.com/watch?v=_v0JoEarI8s
is there any way to do that?
I think that the Call-to-Action overlays can not be managed from the API
https://groups.google.com/forum/?fromgroups=#!topic/youtube-api-gdata/wyUoI9S2c0M
Apparently can only be configured manually
http://support.google.com/youtube/bin/answer.py?hl=en&answer=150471

How to upload and show avatars in php?

Ok i want to load a Avatar with my users regso they can upload and make a profile page i have user reg and everything and im using a flat file in php?
You should consider integrating an existing avatar service such as Gravatar into your application. It might end up saving you and your users a bundle of time. From the Gravatar website:
A gravatar, or globally recognized avatar, is quite simply an image that follows you from site to site appearing beside your name when you do things. Avatars help identify your posts on blogs and web forums, so why not on any site?
Just treat the avatar upload like any photo upload. Create an avatar/image upload form to upload the image to your server in the profile page.

Categories