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
Related
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)
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.
I am trying to build a server side application (PHP) which can download photos that has been shared with me in Google +, but I couldn't find a method in Google+ PHP Client Library for this. I tried to get it through PicasaWeb API, but the Album 'Photos from posts' is not listed when trying to get the list of all albums.
Please suggest some way to do this.
Fetch the posts themselves. In there will be the URLs for the photos that you can then fetch to get the actual images.
Note that there are "resize" tags in the image URL path so if you see something like .../s2048/... or .../w497-h373/... then that will instruct G+ to give you a smaller version (which greatly reduces bandwidth and latency over requesting the full-size image and scaling it locally). Just remove that component of the path to get the full-size image.
i just want to copy and paste my website links on users facebook walls , when share from http://www.tvguide.dk/nyheder/2011-10-15/TV2_satser:_Nu_med_spritnye_v%C3%A6rter_!/ share buttons it works and picks a correct og:image thumbnail ,
however when i copy paste the link on the wall the facebook picks the logo image. insted of og:image value
can you guys help me please
You won't be able to change that, unless you always upload a picture when you post on someones wall! The og:image is only used for the open graph which is used from like and share buttons, comments etc, but not in facebook itself.
Read up on internationalization: http://developers.facebook.com/docs/internationalization/
Your website is in Danish but you have used set locale as en_US. Also the title, type and URL properties are not being interpreted correctly by Facebook. http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.tvguide.dk%2Fnyheder%2F2011-10-15%2FTV2_satser%3A_Nu_med_spritnye_v%25C3%25A6rter_%21%2F
Make changes and check the progress at URL Debugger(Linter) given above. If everything fails try including the FBJS SDK and use fb:share-button. I had a similar problem once with WordPress which got solved using the JS SDK
Need help/idea on this.
I have to create a mp4 audio file and then have to upload it on facebook, twitter and tumblr.
I know there is no specific API for this there. But is there any other way out?
I also know i can upload files on separate server and then can provide the link. But i want it to play there only as video's in facebook.
Any ideas on this will be appreciated.
you can utilize open graph, i.e. create a web page with og:audio related meta tags, see the following doc (scroll towards the bottom):
https://developers.facebook.com/docs/opengraph/
then anytime a user/page/app likes a page, it is uploaded to their facebook
hope this helps
you can also do it from opengraph see if this link is suitable for you https://developers.facebook.com/docs/opengraph/
you can also do it by open graph protocol of facebook