How to share only an image via Linkedin API - linkedin

Using Linkedin via Buffer, I can share content with only an attached image. ie no accompanying comment, url, or any text. It is also possible via the web interface.
However, when using their share API, you are forced to include a URL and it displays with the content. Buffer must be using the API in some way, so how do you get around this?

I have been looking for the same solution.
How to get large LinkedIn Image Share Format
basically you just pass the image url in submitted-url field and don't pass submitted-image-url paramter in the json.
I was unable to find a this solution in google and in stackoverflow. I hope this help someone in the future.

Related

YouTube IFrame API: get video description

I need to fetch a video description (not a title) directly from a user's browser and the only legal that API provides is to call player.getVideoData() but it doesn't contain it.
I tried to use undocumented call to https://www.youtube.com/get_video_info?video_id={video_id} but it's blocked by CORS.
Also I found the API v3 videos/list call that looks like
https://www.googleapis.com/youtube/v3/videos?key=YOUR_API_KEY&part=snippet&id=VIDEO_ID
But as I understood it's intended to Server to Server calls and I don't want to put my API key here.
From what I googled it looks like previously the player.getVideoData() returned the description but now it seems broken.
So is any way to get the description directly from browser?
You can try read the description using document.querySelector- like:
document.querySelector("#description > yt-formatted-string").innerText
N.B. This querySelector worked for me even if YouTube website has in his URL parameter disable_polymer=11 or not.
or
document.querySelector("#eow-description").innerText
N.B: the last querySelector worked for me with old design. I recommend you use the first option, but have this querySelector just in case.
1 add disable_polymer=1 in the URL as a parameter for load YouTube's old design.

Firebase URL Format

I am adopting firebase in my unity game. Image is uploaded then an URL is got by GetDownloadUrlAsync().
The format of URL is something like this:
https://firebasestorage.googleapis.com/v0/b/""ProjectName"".appspot.com/o/""imageName""?alt=media&token=""token Generated by Firebase""
Does anyone know if this is the standard format of this URL?
I am now going to extract the token number out for further processing. My idea is to split the above string by "=".
While I don't think the URL format has changed since the initial release of Firebase Storage in May 2016, it is strictly speaking not a public API. To prevent problems in the future, you should treat the URL as an opaque string.
Out of curiosity: what are you trying to accomplish with the parsing?
Instead of adopting the URL inside unity, i want unity passes the info to another website by html GET. The website then knows the image location and show it. As a result, i can add other functions on the web page such as "share photo" button in social media.
Don't know if there is better way to achieve it :)

Linkedin share api not picking up open-graph meta tags

I am sharing an url "https://timesofindia.indiatimes.com/trend-tracking/jaitley-promises-robust-tax-regime-for-investors/articleshow/62741496.cms?utm_source=linkedin.com&utm_medium=social&utm_campaign=TEST-LINKEDIN" via share api, but no image is picked up from the og:image tag (i.e. meta property="og:image" content="https://example.com" ).
But when i am trying to share the same url from linkedin admin page, it is picking up the image. This means that the image follows all the size-standards and other things required by linkedin.
Then why is the share api not picking up image url from the open graph tag.
If you think your share is properly formatted, but it's not working, first thing I would do is head on over to the LinkedIn Post Inspector, which will examine your URL and look for problems.
But, your URL does look right! Are you sharing like this, with proper URL encoding?
https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Ftimesofindia.indiatimes.com%2Ftrend-tracking%2Fjaitley-promises-robust-tax-regime-for-investors%2Farticleshow%2F62741496.cms%3Futm_source%3Dlinkedin.com%26utm_medium%3Dsocial%26utm_campaign%3DTEST-LINKEDIN
Because this link works for me! Take a look:
Sometimes you just need another pair of eyes on the same problem! Hope this helps!

Content of Facebook Open Graph urls

I know Facebook open graph self hosted object uRLs should have their meta tags describing the object.
But I was wandering if they are supposed to have anything else at all?
i.e. Should they also provide user content? or are they just used for FB scraping?
It depends on what you are trying to do.Take a look at facebook Sharing Best Practices documents.

Displaying Google Map/Streetview on webpage with a dynamic address

I'm trying to display a google map on a webpage. The address that the map displays is dynamic. I'm getting the address from a database. Is there anyway to use this address and display it on a webpage?
I followed this tutorial with no luck: http://www.thetutorialblog.com/php/php-class-for-google-maps-api/
If anyone has any other links or suggestions i'd appreciate it.
Here's a SO post that does the geocoding on the client. The only thing your php would have to do is provide the address string.
Maybe try this PHP Google Map API, which appears to be a fork/update of the API talked about in the tutorial that you used. The demos look pretty clear.

Resources