I've been trying to post some data from my webpage directly to a facebook group wall. Is is possible to achieve? Here's a code i used:
$.getScript('//connect.facebook.net/en_UK/all.js', function(){
FB.init({
appId : myAppId,
xfbml : true,
version : 'v2.0'
});
FB.api('/groupId/feed', 'post', { link: 'linkToMyPage', name: 'Name' } , function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Success!');
}
});
Any help will be appreciated!