Facebook SDK and Android - Feed post succeeds with error -


i'm doing feed post through facebook sdk on android.

it working fine before, since changed fb app id, post works sdk throws null facebookerror exception. tracing little more, can see fb request returns false, though correctly completes post!

if use former app_id, works without hitch. if use new app_id, error, means has nothing code, app setting. however, don't know setting is.

just in case, here code. pretty straight out of example:

private class sampledialoglistener extends fbbasedialoglistener {

    public void oncomplete(bundle values) {         final string postid = values.getstring("post_id");         if (postid != null) {             //post id valid here             _app.fb.getasynchrunner().request(postid, new wallpostrequestlistener());         } else {             showchallenge.this.runonuithread(new runnable() {                 public void run() {                     string errormsg = getresources().getstring(r.string.errorunabletopostfeedonfacebook);                     toast.maketext(showchallenge.this, errormsg, toast.length_short).show();                 }             });         }     } }  public class wallpostrequestlistener extends fbbaserequestlistener {      public void oncomplete(final string response, final object state) {         //log.d("facebook-example", "got response: " + response);         boolean fbpostsuccess = false;         try {             //response 'false'             jsonobject json = util.parsejson(response); //throws facebookerror exception             fbpostsuccess = true;         } catch (jsonexception e) {             log.w("facebook-example", "json error in response");         } catch (facebookerror e) {             //exception here!             //log.w("facebook-example", "facebook error: " + e.getmessage());         }         //former app id succeeds without hitch. be?         final string msg = getresources().getstring(fbpostsuccess ? r.string.facebookpostsucessful : r.string.errorunabletopostonfacebookwall);         showchallenge.this.runonuithread(new runnable() {             public void run() {                 toast.maketext(showchallenge.this, msg, toast.length_short).show();             }         });     } } 


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -