-1

is it possible to login to a website with a FB login and have the user post to his friend with permission? By "with permission" I mean the friend has to approve the post. Is this possible?

slugster
  • 49,403
  • 14
  • 95
  • 145
user2399453
  • 2,930
  • 5
  • 33
  • 60
  • 1
    possible duplicate of [FB.api 'post' returns error](http://facebook.stackoverflow.com/questions/17267012/fb-api-post-returns-error) – phwd Jun 24 '13 at 06:58

1 Answers1

0

Yes it is possible. We have an application at my job that posts on the user's profile, as them, every week.

From the facebook doc (https://developers.facebook.com/docs/reference/javascript/FB.api/):

If you have an authenticated user with the publish_stream permission, and want to publish a story to their feed:

var body = 'Reading JS SDK documentation';
FB.api('/me/feed', 'post', { message: body }, function(response) {
  if (!response || response.error) {
    alert('Error occured');
  } else {
    alert('Post ID: ' + response.id);
  }
});
Dany Caissy
  • 3,176
  • 15
  • 21