LinkedIn Share API - create a post with attached PDF - linkedin-api

I want to use the LinkedIn Share API to publish on behalf of users posts with an attached PDF.
Using the Create an Image Share section of the docs, I manage to publish a post with an attached PNG image. If, using the same technique, I upload a PDF instead of a PNG image, the post does not get created.
I can't find anywhere in the docs how I would share a PDF. So my question is: is it possible to programmatically create a post with an attached PDF, and if yes, how would you do it?

According to docs from the Marketing developer platform, as of October 28th 2019,
Currently, only jpeg and png formats are supported.
So I guess it is currently not possible to share a post with an attached PDF.

Related

How to download Facebook Ads Creative? (Python SDK)

I'm looking to download creatives/images of my ads into a company database, and stumbled upon this section on the Graph API. It lets us access the thumbnail link (enter image description here).
I'm wondering how I might get the images/thumbnails and store them in my directory in the .jpeg/.png format via Python?
Thanks again!

Facebook share only image

I am developing a website where users have the possibility to generate image. I want them to be able to share this image to facebook directly on my page using share button. Not as an article, but as an actual image. Is this possible?
Additionally, as a bonus, is it possible to prompt them option to create a seperate album for it? Since they may share tens and more of these images, it would be good if they wouldb be located on a seperate album or something, so they wont bury other images.
If it is a website, generally you share the webpage/article. There are many types in the opengraph format including ones for video and music. You should read the documentation. If you want the image to uploaded to a user's picture section, I'm not sure that is possible, I think you can only put stuff on a user's timeline. You should have also searched first as there is a stackoverflow question about this already.

Using Facebook for an online magic contest (Video upload /

I am currently developing a new website / facebook app for an online magic competition. I am hoping most of the functionality can come from Facebook's own services, and would like your feedback on how plausible our goals are.
Essentially there will be two types of users: magicians and voters. Magicians will upload a video of them performing a trick (or select a video they have already uploaded). Voters will vote for their favourite magicians, and be able to post these videos to their wall.
Are these possible:
Video upload to Facebook - I have had a search, but the only method I found uses the depreciated REST API. Is there a newer implementation?
Video download - After a user has uploaded a video are they (or can we) able to download their video from Facebook?
Embedding magicians Facebook videos on the standalone website?
Thank you in advance
You can still upload videos and photos using the graph api. We have done this into galleries for a number of clients.
see here for a picture example (works with other media objects such as videos):
Is it possible to post a status update and adding an image file with facebook graph API?
The problems you may face though are the issues of managing and approving content in the site.
One solution we have found is to combine YouTube API and Facebook to get the best of both worlds. you can now embed a YouTube uploader in your site / app which will post videos into a channel of yours but have an approval app to control what lands. Then add any voting mechanism of your choice to the stream of videos. You can use YouTube likes, Facebook likes or your own. Take a look at this video:
http://www.youtube.com/watch?v=u1zgFlCw8Aw
You can embed a YouTube channel into Facebook easily too:
http://www.youtube.com/watch?v=pClpKAnddGI
Also using youtube, you can spread your net farther to reach more of an audience.
Hope this can be of some help. (No, I don't work for YouTube just find using more than one platform better)

Is it possible to share and see a link using ShareKit in iOS(need the exact way as Web)

I have an app and I am using ShareKit for sharing in Facebook. I am able to share URLs, images and texts to FB using that. But why did the link/url share do not work the same way as when I share a url from Web Facebook. I have got many contents like image in my url and while doing the Share through web I am able to see the image and a small portion of content, but while I am doing it from iPhone using ShareKit, it just gives the heading/title and we need to click on that link(no images or contents).
If anyone know the solution, please help.
When you share a link on the Facebook site it will automatically fetch the URL and display some appropriate images that you can choose from. However, when directly interacting with the API this won't happen. You must provide the image yourself (or Facebook may use the image associated with your application). ShareKit may abstract this away from you, so you might want to look into using the Facebook SDK and Graph APIs directly.
I fixed the issue. Instead of posting(POST) the attachment dialog, just use GET method in the load function and pass the link you want to share. :)

Uploading image to Facebook and including it in feed post from iPhone App

I was working on an iphone app where users create images (think like a paint program); then they have an option to post it to Facebook: the image would be uploaded to the users albums and simultaneously a post would appear on their stream ("Hey, look what I just made with app X, get it here; etc).
This used to work just dandy, but it seems that Facebook no longer allows images hosted on their domain to be used in stream posts: FBCDN image is not allowed in stream is the error message.
Anyone have a workaround method for doing this kind of "upload and stream post in one shot" kind of thing? I know I could have the users upload all their created images to my own server and use that in the feed post...but that should be totally unnecessary. It shouldn't require an extra server for a user to draw a picture in a paint app and then upload to FB with a corresponding feed post about it.
Thanks!
I posted a similar question and learned that it's now a 2-step process where you upload the image to an album, then include a link to that in the feed. The answer is complicated, so please check over at that link. If you find it helpful, please up-vote that answer. (Feel free to up-vote/accept this one, too, but I understand that's sort of cheating ;)