views:

273

answers:

0

Hello,

I am using FB.api OpenGraph to post a message on the user's wall. I would like the link target to be equal to '_blank' so it opens in a new tab. Is it possible ? The Facebook documentation doesn't give much details.

  var params = {};

  params['message'] = 'message';
  params['name'] = 'name';
  params['link'] = 'http://link';
  params['picture'] = 'http://picture';
  params['description'] = 'description';

  FB.api('/me/feed', 'post', params, function(response) {
    if (!response || response.error) {
      alert('Error occured');
    } else {
      alert('Post ID: ' + response);
    }
  });