функция использования моего приложения.
разрешения для приложения: publish_stream, offline_access
Просмотр сообщения с настольного компьютера - показывает
Просмотр сообщения с мобильного устройства или m.facebook.com - не отображается !!!!!!!!!!!!!!!!
method: 'feed' и метод: 'stream.publish' не отображается. !!!!!!!
Почему, я не уверен, если это произойдет.
var stream = {
method: 'stream.publish',
message: 'aaa',
attachment: {
name: 'aaa',
caption: '',
description: 'aaa.',
href: 'https://apps.facebook.com/lll/',
media: [{
type: 'image',
src: imagepath,
href: 'https://apps.facebook.com/lll/'
}],
properties: [
{text: 'a', href: 'https://apps.facebook.com/lll/'},
{text: 'b', href: 'https://apps.facebook.com/lll/'},
{text: 'c', href: 'https://apps.facebook.com/lll/'}
],
},
action_links: [ { text: 'actionlinks', href: 'https://apps.facebook.com/lll/' } ],
user_message_prompt: 'post this to your wall?'
};
function callback(response) {
//response['post_id'];
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
FB.ui(stream, callback);