Upload an audio file to Facebook and Twitter - facebook

Is it possible to upload an audio file to Facebook and Twitter?
I tried a lot and do googling but no success so far. So I just want to confirm:
Facebook API for upload audio file
Twitter API for upload audio file
What is the API link if it is supported?

No it is not. Twitter only supports text and Facebook only supports text, images, and video. You could consider using something like Amazon S3 to store the files and post links to Twitter/Facebook.

If you want to add audio to twitter, then you can use services like http://tvider.com/
Another method is, start your own Audio uploading and sharing website, and you can tweet the link from your website through Twitter API.
Example:
Hoorey!! This is my first audio tweet!!! http://aud.it/3yU2d
(2 minutes ago via Aud.it)
Where I just named it as "Aud.it" or http://aud.it/ thats all!
Some mathematics:
This audio tweets can be of a fixed length, say 15 seconds, and a constant bitrate of 8kbps (enough for speech voice recording).
So, total (8Kbps/8bits)*15s = 15KB for each recording.
In 1MB, you can have nearly 540 records, and in 1 GB, 70,000 recordings.
Also for delivering a single audio tweet, you need less than 1 second on a normal 40Kbps dial-up line.

I would recommend simply making an mp4 file without video, this is probably the closest you will get, and it has official support.

Related

can you load videos in flutter through an api?

I found this article to upload videos but it already has the urls of the videos written.
I need to pass the videos through an api.
Any ideas??
https://medium.com/#sanjeevmadhav03/preloading-videos-in-flutter-4b65cf0681c6
Check if your api endpoint Supports upload of binary files. If it does, check if you're given url of the location of the video

How to get the full track mp3 url?

Through the track api I got preview field,it can provide a 30 second address.but I want get a full track mp3 url, excuse how to get the full track mp3 url by deezer API when I have a Premium+ users token.Thinks.
The only way to play a full track is by using our SDKs available here: http://developers.deezer.com
There is no possibility to retrieve the MP3 URL.

Facebook API. Change video thumbnail?

When you upload a video to facebook, it lets you specify a thumbnail you want to use out of the 10 it generates and offers you (In the edit settings). Is there a way to upload a video and have it change the thumbnail to one of their randomly generated thumbnails using the api instead of having to do it manually?
There is no way to directly tell Facebook to select one of those default thumbnails.
You can query the [api_url]/v2.3/[video_id]/thumbnails edge which gives you the 10 thumbnails that Facebook has extracted from the video, and then set one of those as the video thumb using the same edge yourself.
Refer to: https://developers.facebook.com/docs/graph-api/reference/video/thumbnails/

Post an mp3 to a users feed via the Feed Dialog

According to https://developers.facebook.com/docs/reference/dialogs/feed/ one can post mp3s to a users feed by constructing a URL like:
https://www.facebook.com/dialog/feed?+app_id=<APP-ID>+&display=popup&caption=<CAPTION>&redirect_uri=<REDIRECT>&picture=<PICTURE>&source=<MP3-FILE>&description=<DESCRIPTION>
This produces a share dialog, but when the source parameter is added, the file is not embedded on the page (nor is any link to the file given).
I had expected to be able to embed the mp3 like the documentation says. I seem to remember that facebook had it's own player to play embedded mp3 files from the feed - this is not showing up.
Has this functionality been disabled?
I think the API still allows you to attach audio data but Facebook's audio player was removed in 2011 -
To play music inline now, you need to specify a flash player which loads the desired audio as an attached 'video' ( via the same 'source' parameter of the feed dialog )
You could also use a third party like Soundcloud who have a flash player for the content uploaded there

Play MP3 on facebook wall making it impossible to download the file

I need a possibility to insert a flash mp3 player on a facebook wall entry. I know I can do this just by posting a mp3 URL or by using fb:mp3, but both make it possible for the user to download. Due to legal reasons this must not be possible.
Can anyone point me to a mp3-player-app that can do this, where the file URL is encrypded / hidden?
Flowplayer has an option to stream the audio so that it cannot be downloaded. See the section titled "Secure your audio files from direct download". This should work on Facebook.