Facebook graph api posting gifs as static images to pages posts - facebook

I'm trying to post gif to facebook page but when it's posted as photo, gif image does not move, it posts as static jpg file.
What I've already tried:
The result is static image:
I've tried to post gif as video:
The result is better, but still it's not attached as gif
What I'm trying to achieve is to post gif as gif, like you attach gif when do post manually. My expected result is like this:
Is it possible to post gif like in last example using graph api?
Will really appreciate any help, thanks in advance.

Related

How can I prevent Facebook from loading preview images of my Blogger posts?

Whenever I post a link to my blog at blogspot.com on Facebook, a wrong or completely irrelevant thumbnail image is loaded. Is there a way to prevent Facebook from loading any image from my blog at all? Perhaps some HTML or CSS code I could use on Blogger?
maybe your blog structure invalid, such as og image... cause, normally... facebook or another social media get data image from post..
first image..
if you want to show relevant image.. just put it first on your post
check your page structure using google page structure tool from webmaster.

How to make facebook custom story with custom structure like strava?

I understand that we can make custom facebook feeds with custom actions and objects (doc: facebook custom stories)
However, I can't seem to find any documentation about making a custom-structured output feed like Strava below for example. Just to clarify, the miles, minutes, mins/mi and elevation info are not part of the image; it's a table tag. (also, the route in the image seems to be SVG)
Edit: I don't have enough stackoverflow reputation to post an image, so here is the imgur link:
Strava feed

how to share animated gif on facebook

i'm going to create facebook app using javascript sdk.i want to create app which shroud be able to post animated gif .my idea arise after see this app and https://www.facebook.com/khalil.shr/app_212097992149339. it work 100 percent .
and another best example is https://www.facebook.com/photo.php?fbid=471334666225107&set=p.471334666225107&type=1 take a look this picture animated without clicking on it.i can't guess how it work ..i want a complete guide about that ..
There is no API which allows animated GIFs to be uploaded to Facebook - any you see on Facebook were uploaded while there was a bug in the image validation code and are only visible because the images were not retroactively removed
You can't upload an animated GIF to Facebook. There are however some ways to outsmart the system. For example, the 3 ways mentioned in Guide to Animated Gifs for Facebook. It says:
If you try to upload a GIF to Facebook, a still image of the first
frame will appear. However, there are three ways to try and outsmart
the system.
Make a Youtube video look like a GIF.
Use a third party app on Facebook like Animated Picture. For this app, you do not use your own files. There are hundreds
sorted out in different categories to choose from.
Post a link to the GIF. Yes, the still image will show up, but a description will accompany it. Yes, it may take more time, but
your friends will be curious as to what it entails.
But, if the GIF you want to upload is not a moving picture, it should
work just fine. If you have a GIF image that is a nonmoving image, you
should have no problem uploading it to Facebook. According to the
Facebook Developers page, GIFs are one of many file types allowed for
uploading to the platform. Other supported image file types include
JPG, PNG, PSD, TIFF, JP2, IFF, WBMP and XBM images.
Similarly, you can find many other workarounds to this on the internet.
there was a bug back in 2012 which allowed user to upload an animated .gif by renaming it to .jpg and then upload it as an image. This has been fixed , although you can still see the gifs that were uploaded before the fix.
NB: check uploaded date of all animated images in facebook, all of them are uploaded on or before year 2012
Looks like Facebook finally enabled the GIF support!
You can upload gif image to some 3rd party website (Gipfy or something else) and then upload this link to facebook - then it'll be displayed as animated GIF!
http://techcrunch.com/2015/05/29/facebook-confirms-it-will-officially-support-gifs/#.pfn8nn:CJC4
It is possible to publish a GIF through the Graph API, please see an example call below:
curl \
-X POST \
"https://graph-video.facebook.com/v2.8/{page-id}/videos" \
-F "access_token=<sanitized>" \
-F "source=fluffy_cat.gif" \
You can now post an animated Gif on facebook by posting it as a video. If you post it as a photo it will not be animate-able and will display the first frame only.
To post an animated gif from URL use this Graph API call:
POST /me/videos
access_token=<access token with "publish_actions" permission>
file_url=<url to file>
Alternatively you can replace me with another user or page identifier.
The best way to share an animated gif on Facebook, is to
Upload the GIF to an image hosting site that allows animated gifs, such as http://imgur.com or http://photobucket.com then
Get the direct URL to the image from that site
Post the URL to the GIF on Facebook
Remove the image preview, as that will be a still image, and people won't realise its an animated gif if they see a still image preview. Add text to the image's description that it is an animated GIF, and that they need to click the link to see the animation.
Pro Tip: If you want to be able to view animated GIFs directly on Facebook, without having to click the GIF links as mentioned in the method above. You can use a browser extension such as FB Purity : http://fbpurity.com as it has an option called "View Animated Gifs". When this option is turned on, whenever the extension sees a link to an animated GIF on the Facebook site, it automatically converts it to a fully working and moving Animated GIF, so you don't even need to click the link to see the animation.
Another method is to convert the animated Gif into a video file then upload that, as Facebook now autoplays Video files, just like animated gifs. One way to convert an animated GIF to a video file is to use the free, open source Virtual Dub software. Get Virtual Dub here http://www.virtualdub.org
Open your .gif as a video file in Virtual Dub... then save as .avi then upload the new file to Facebook.
Though you can search google for other methods of converting animated gifs to video files if you dont want to use Virtual Dub.
There are also some other alternative methods listed here:
https://superuser.com/questions/5730/how-do-i-convert-an-animated-gif-to-a-youtube-friendly-video-format
If you want to do it from your own site you must have verified (green lock icon)secure layer socket SSL installed certificates. Then just go to Facebook debug and add the link. EASY!

facebook video thumbnail image URLs?

For example, this is the url to a facebook video thumbnail:
http://vthumb.ak.fbcdn.net/vthumb-ak-sf2p/v10822/239/59/505867356/t505867356_382364037356_272.jpg
There are quite a few obfuscation identifiers in there which prevent me from doing something like taking a video id and making a thumbnail link.
The reason I'd like the thumbnail is to be able to populate a 'navigator' band with the various videos from the app.
Anyway, anyone know of a way to get the video thumbnail url?
find your video id, and this the url of thumbnail https://graph.facebook.com/VIDEO_ID/picture

How do I get Facebook to use a thumbnail picture from my Posterous post?

When I share a link on Facebook from Posterous, I would like it to use a thumbnail image from that post or even the YouTube video.
Is it possible to do this?
At the minute if I share a link e.g. http://www.dan.ag/the-brick-thief-a-lego-short-film it will use the image_src meta that Posterous has set.
You should be able to put your own image in the post (and even hide it in CSS) just put it near the top.
Then, when you share the post in the box on Facebook it should show the in the list of pics to associate your post with ...
I'm assuming you aren't using the API?