Recently our app was able to create LinkedIn posts via UGC Posts API and the URL preview functionality worked perfectly for the article post type when the source URL was provided. But after we migrated to the new API it seems that it is not possible anymore according to
https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/advertising-targeting/version/article-ads-integrations?view=li-lms-2023-01&tabs=http
Article Post API does not support url scraping for article post creation […] it. Instead, API partners need to set article fields such as thumbnail, title and description.
Is there any workaround for that except parsing those fields by yourself and providing them with publishing request?
I've tried to pass only source url with an empty title (both fields are required) in a post creation request, but the result article was crested with that provided data only - so no image was recognized.
I tried to use the link in another posts type but it seems not working, so there is no workaround you should scrap the link yourself or take the information provided by the user and fill in the object
{
"source":"",
"title":"",
"description":"",
"thumbnail":""
}
And this is mentioned in the docs,
Posts API does not support url scraping for article post creation as
it introduces level of unpredictability in how a post is going to look
when API partners create it. Instead, API partners need to set article
fields such as thumbnail, title and description within the post when
creating an article post. To create an article post with thumbnail
image, please use Images API to upload thumbnail image and use the
ImageUrn on thumbnail field. For more info, please refer to
ArticleContent API.
https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/posts-api?view=li-lms-2023-02&tabs=http#article-post-creation-sample-request
Related
I have a preformatted HTML string that I want to use to create a POST or PAGE through wordpress REST APIs. The purpose is to avoid formatting after the POST or PAGE is created.
The problem is wordpress apis to create post/page do not take HTML as a parameter.
I think you can pass your content as a json format. Please check the screenshot
A client is asking for an option to automatically repost/copy a published post from WordPress to a LinkedIn article since there's a different audience watching both feeds.
Most created WordPress solutions only facilitate sharing a link to the website post on the standard feed and from what I can find at https://developer.linkedin.com/docs/guide/v2/shares/articles-api there seems no option to create articles through an API, only retrieve and delete them.
I was wondering if I missed something or if at the moment it's not possible to create LinkedIn articles through the API. Thanks.
so because you speak of a client. i will take this as a hint that the article needs posting on the company page.
you should read the following page:
https://developer.linkedin.com/docs/company-pages
this page contains all information regarding managing company pages including adding posts.
There are two methods for sharing content via the REST API. The API endpoint is the same, regardless of the method you choose — only the format of the request body differs.
Post a plain text comment. Note that if the comment includes a
fully-qualified URL in it, LinkedIn analyzes the included URL and
automatically identifies the title, description, image, etc., to be
used as part of the share. Share with specific values — You provide
the title, description, image, etc., directly in the body of the
request.
NOTE:
you cannot use the V2 api's without a partnership with linkedin. the link i provided is for V1 api. this api is for free use. if you necessarily need the V2 then just post a comment and i will explain the proces of the partnership.
I have a blog and I want some automatically - generated news on it. I have found a few news websites which generate RSS feeds and I want to auto-post them to my blog.
I have done this using the WP-o-Matic plugin, but since the RSS feed's content is limited to some point, the entire news' text does not show up on my blog.
Is there a way to get the whole content of the post the RSS feed is linking to ?
You're going to have to code this yourself. Let's say you subscribe to an RSS feed for Google News. You can parse their feed to get the original URL of the summarized article, but then you're going to have to make a request to that URL and fetch the content on that page. Unless the source happens to make whole articles available via its own RSS feed (unlikely), you're probably in markup-scraping territory.
Have to say this: consider the ethical/legal implications of duplicating entire original content on your site (as opposed to summary snippets), even with proper attribution.
For people that need a solution to the problem I described ..
There are services like:
http://fulltextrssfeed.com/
http://fullrss.net/
http://www.wizardrss.com/
You can use them to do the job for you. They fetch the RSS feed, crawl the websites and extract the full articles for you. After that, they provide a RSS feed of their own with the extracted data.
You can combine the extracted data (the RSS feed the service provides you with) with a wordpress plugin like WP-o-Matic. That way the plugin connects to the RSS feed of the service and the service extracts the content from the original RSS feed.
Have in mind that those services are not perfect. Due to complex website layouts, these services might be unable to find the content, or include things that are not a part of the articles. A manual check of the output is advised.
To the services alrady listed at the top, you can also check http://www.FeedsAPI.org , FeedsAPI brings to the table that it takes the process of posting the articles directly to your secret blog email for you, so all you need to do is manage the publication in the wordpress admin, and you can also get it targeting a specific feed to receive the results you want. Anothe alternative will be the combinations of one of those services with IFTTT . I hope this could help.
I would like to understand how does instagram show large image thumbnails, with each thumbnail having individual actions such as Like and comment. Is it possible to do via the Open Graph API or is this due to Instagram being a property of Facebook?
The custom action and objects API does not seem to allow such a layout. An example is shown below
This is supported by the API via the user generated photos functionality:
https://developers.facebook.com/docs/opengraph/usergeneratedphotos/
has the docs, and you need special approval for your actions
You add the following parameters to your existing publish calls:
image[0][url]=<URL TO IMAGE>
image[0][user_generated]=true
image[1]... etc
{edit:} Actually, i'm not sure how to render that aggregated unit - my answer above is for the photos functionality itself
I want to publish the same post which I just published in the worpress blog to blogger & facebook automaticaly. I know it possible and there are various plugin out there. But cant find one free to use plugin which do this.
I used a 'network publisher' plugin. Its free for facebook by need to pay if we want to add another on like blogger or other. But its working good for me in facebook
Now I am really worried what to do for my blogger to get automatically posted from wordpress.
At last I got the blogger (.blogspot) to get my post automatically from the wordpress.
The blogger can be configured to post via email. There in the blogger account we have to create a secret email address in the setting tab
format look like this - name_of_the_site.secretcode#blogger.com (so that a mail send to this address will automatically posted in the blogger)
And then in the wordpress install a plugin named CROSSPRESS which do all the required stuff
where simply put the email address and the signature which we want to show underneath each post.
Test it by creating a new post and publishing it. You will get the same in blogger
DONE......
It is now possible to post directly using Blogger API (since 4 weeks)
I think you just have to wait a plugin that integrate this feature.
Here is the API announcement : http://code.blogger.com/2012/06/blogger-api-v3.html
Simply set up Blogger and Facebook to get your Wordpress site RSS feed. Look at Blogger and Facebook for docs on how to do that.
Cross post seems to have issues in that line breaks don't get carried across properly and it seems to generate ASCII character 160 in a few random places as well at the moment.