Share Animated Gif To Facebook Using Javascript
Now that Facebook supports the sharing of animated GIFs, I want to make a simple button that shares a selected GIF from a gallery, like this: var obj = {      method: 'feed',     s
Solution 1:
I've faced the same problem and I found a solution to post GIFs on Facebook
use the method me/feed/ and put the gif url under the link object
example:
FB.api(
  'me/feed/',
  'POST',
  {
    message: 'This is a GIF',
    link: 'http://25.media.tumblr.com/08d54accc4beb56a50e752fd931c6b58/tumblr_mlsyqrzwWQ1s3g3ago1_400.gif'
  },
  function(response) {
    console.log(response);
  }
);
It worked for me I hope it works for you.
PS: I'm using the 2.5 API.
Post a Comment for "Share Animated Gif To Facebook Using Javascript"