I'm using the chunked upload methods for ad videos in Facebook, referenced here: https://developers.facebook.com/docs/marketing-api/advideo/v4.0#chunked
It looks like no matter what the size of the video is, the response always comes back indicating to chunk the video by 1MB. This is going off the end_offset. So a 700MB video would turn into 700 chunks and 700 API calls.
Does anyone know if there's a way to change the chunk size? And would each of these calls count towards the API limit?
Related
I am uploading videos to a page as described here: https://developers.facebook.com/docs/graph-api/video-uploads
This gives me a specific ID that identifies that video. The video is also "posted" to the page feed automatically.
However, I cannot get insights for that post using the Page Video Posts metrics (see https://developers.facebook.com/docs/graph-api/reference/v2.5/insights#page_video_posts). The video itself is (logically) not recognized as a post and as such does not have an insights edge.
Is there some way to get metrics for a video on a page from the video ID itself? I know there are restrictions (must be page, 30+ likes, etc.), but these have all been fulfilled.
It seems somewhat backwards to have to upload a video, suppress the video auto-posting and then make an actual post with the video in it to get the insights for that post (and why is the video statistics related to the post instead of the video?!).
I am using python, but really any examples showing the actual requests being made will be helpful.
I'm using the 500px REST API in order to retrieve information on photos, and download them.
Using the photos/:id method I'm retrieving the details of the photo.
The endpoint supports downloading the images in various sizes, via the image_size parameter (described here), however the largest image I can get is "2048px on the longest edge" (using the 2048 value).
Is there a way to download the original photo?
Note: I'm allowing users to download only their own photos, not photos of other users...
I don't think there's any way to get original image because if it was possible, developers would have built a web/mobile tool to download full-size images and no one would care about 500px Prime and buy images from 500px.
We have a PHP based real estate template and when we SHARE PAGE on Facebook, the resulting photos to choose from do not include the desired photo(s) to select from. IE we have 10-15 images on this page, and facebook only offers 3-4 as an option to share, none of which we want to share.
Suggestions?
Example http://kemptvillerealestate.com/listings/listing_body.php?id=118521
I have seen some cases that image size and/or aspect ratio did not satisfy Facebook's requirement and those images did not appear on users' wall, timeline or Facebook page.
The best practice is shown here and I think this is the latest one. As Facebook design including timeline, news feed and page changes this optimization practice changes accordingly. So be careful catching up the latest specifications.
So far the document describes as follows:
Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images.
If your image is smaller than 600 x 315 px, it will still display in the link page post, but the size will be much smaller.
We've also redesigned link page posts so that the aspect ratio for images is the same across desktop and mobile News Feed. Try to keep your images as close to 1.91:1 aspect ratio as possible to display the full image in News Feed without any cropping.
And when you update images on your pages, make sure you visit Facebook Debugger and let Facebook crawler scrape your page again so they will get the latest version of your page content. Or you can do it programmatically as stated here:
This Graph API endpoint is simply a call to:
POST /?id={object-instance-id or object-url}&scrape=true
The response from this endpoint will be a JSON object that contains all the information about the object that was scraped (the same data returned when the Object ID is read from the Graph API).
Is there any kind of metadata in photos that Facebook processes that could be used to figure out if a photo originated from Facebook?
For example, is there any data I could extract from a resized jpg file downloaded from Facebook using ImageMagick or some other tool?
I don't see any way to do this right now other than to guess by filename (which I don't have in this case) or by dimensions.
AFAICS there is no way to discover any special metadata or EXIF data in photos that are downloaded from Facebook.
'Originated from Facebook' (your expression) in any way is wrongly stated. People upload lots of stuff to Facebook, but that doesn't mean it originates from there...
If you can provide any sample of fotos you are thinking of, one could start investigating a bit closer....
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.