Android facebook how to go to website on clicking the post -


in android application want post on users facebook wall , on clicking on post user has redirected website.but redirected app.how can fix this.please me.thanks in advance.

the code used sharing on wall is

bundle postparams = new bundle();                 postparams.putstring("name", "");                 postparams                         .putstring(                                 "caption",                                 "");                 postparams.putstring("link", "http://www.something.com/");                 request.callback callback = new request.callback() {                     public void oncompleted(response response) {                          facebookrequesterror error = response.geterror();                         if (error != null) {                          } else {                             jsonobject graphresponse = response                                     .getgraphobject().getinnerjsonobject();                             string postid = null;                             try {                                 postid = graphresponse.getstring("id");                                 log.i("tag", "postid " + postid);                             } catch (jsonexception e) {                                 log.i("tag", "json error " + e.getmessage());                             }                         }                      }                 };                  request request = new request(session, "me/feed", postparams,                         httpmethod.post, callback);                  requestasynctask task = new requestasynctask(request);                 task.execute(); 

you can't it, facebook doesn't allow posting of external url's apart facebook app page. can post image using external image url. e.g.

postparams.putstring("picture", "http://some/image_url"); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -