facebook - is it possible to use FB.ui to generate share dialogue and use that for FB.api to post? -


i want post on fb apps users wall link fb.api function. want give user full control on post have in fb.ui. example, i'm using code post on wall-

function fb_share(){  var currentpageurlis =document.location.href;  var params = {}; params['access_token'] = fb.getauthresponse().accesstoken; params['link'] ='http://rasselmahmud.com/sonardesh'; params['message'] ="hello world";  fb.api(fb.ui("me/feed", "post",params, function (response) {   if (response && !response.error) {     /* handle result */   }  } );  } 

and it's working fine post.

and using code popup share dialogue

      fb.ui({method: 'share',href: 'http://rasselmahmud.com/sonerdesh'},                    // callback                   function(response) {                     if (response && !response.error_code) {                       alert('posting completed.');                      } else {                       alert('sorry not post on wall. please     try again..');                     }                   }                 ) ; 

this code working fine.

now want is- using popup generated fb.ui() function fb.api() function user can enjoy features enjoy in pop up.

please me solution or suggest me else way can done...


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -