简体   繁体   中英

How to post to facabook wall or send message with image attachement using facebook javascript api

I would like to post to facabook wall or send message with image attachement using facebook javascript api. Following is my code of 'send' case. Using the code, I can send a message to facebook, but image is not attached(the image is not treated as attachement and displayed small).

FB.ui({
    method: 'send',
    to: id,
    name: 'hoge',
    link: 'http://xx.info/tmp/index.html',
    description: 'hoge',
    picture: 'http://xx.info/tmp/test.jpg'}
);

Does anyone know how to do it?

This is the intended way for the send dialog to work. I do not believe there is a dialog that allows attachments you need to explicitly use API calls.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM