Cra*_*lot 0 facebook facebook-graph-api
这是代码:
attachment = { message:'', name: 'post title', caption: 'user just did something',
link: 'post URL', action_links: [{ text: 'action link test', href: 'http://example.com'}]
};
FB.api('/me/feed', 'post', attachment, function(response) {
if (!response || response.error) {
alert('Error occured ' + response.error.message);
} else {
alert('Post ID: ' + response.id);
}
});
Run Code Online (Sandbox Code Playgroud)
有线索吗?