Facebook javascript sdk api share a link and have an image of size 154 on the wall - Stack Overflow

I need to share a link to facebook and have an image on the wall of bigger size. I share a link as foll

I need to share a link to facebook and have an image on the wall of bigger size. I share a link as follows:

    FB.ui(
      {
        method : 'feed',
        name: 'the name whatever',
        caption: 'some caption',
        description: 'description',
        link: '',
        picture: photo_url
      },
      function (response) { ... }
    );

The picture is bigger then 154x154, i tried size 180x180 (i read somewhere in the docs it's required 180x180), but it ends up of size 90x90 on the wall anyway :(.

If i remove the picture parameter the image will be taken of the og:image meta tag, but it is still 90x90 pixels! If i post the link myself i can see it grabs the correct size - so when i post to wall myself it posts image of size 154x154, but how can i do the same to post it via the api facebook provides?

Tried it this way as well - works the same, please help :(

    FB.api('/me/feed', 'post',
      {
        link : '',
        picture : photo_url
      },
      function (response) { ... }
    );

This is when posted manually, a direct link to a site(image taken off the meta tags):

This is when shared via api(original: .jpg ):

When no "picture" argument is provided it posts the "TEST IMAGE" from meta tags, but still with the size 90x90

I need to share a link to facebook and have an image on the wall of bigger size. I share a link as follows:

    FB.ui(
      {
        method : 'feed',
        name: 'the name whatever',
        caption: 'some caption',
        description: 'description',
        link: 'http://mysite./some_page',
        picture: photo_url
      },
      function (response) { ... }
    );

The picture is bigger then 154x154, i tried size 180x180 (i read somewhere in the docs it's required 180x180), but it ends up of size 90x90 on the wall anyway :(.

If i remove the picture parameter the image will be taken of the og:image meta tag, but it is still 90x90 pixels! If i post the link myself i can see it grabs the correct size - so when i post to wall myself it posts image of size 154x154, but how can i do the same to post it via the api facebook provides?

Tried it this way as well - works the same, please help :(

    FB.api('/me/feed', 'post',
      {
        link : 'http://whatever_mysite./some_page',
        picture : photo_url
      },
      function (response) { ... }
    );

This is when posted manually, a direct link to a site(image taken off the meta tags):

This is when shared via api(original: http://www.dandybooksellers./acatalog/TheoryTest.jpg ):

When no "picture" argument is provided it posts the "TEST IMAGE" from meta tags, but still with the size 90x90

Share Improve this question edited Mar 14, 2013 at 10:02 igrek asked Mar 13, 2013 at 12:59 igrekigrek 1,4251 gold badge12 silver badges29 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 1

The URL of a picture attached to this post. The picture must be at least 50px by 50px (though minimum 200px by 200px is preferred) and have a maximum aspect ratio of 3:1

For more detail, please refer: http://developers.facebook./docs/reference/dialogs/feed/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745407874a4626395.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信