android - Click on Facebook LikeView returns "Application is not visible to this person" exception -
i'm using facebook-android-sdk v4.4.0 , i'm trying implement button in android app. did "by book": in activity's oncreate
i'm doing following:
mlikeview = (likeview) findviewbyid(r.id.like_view); mlikeview.setobjectidandtype(url, likeview.objecttype.open_graph); mlikeview.setonclicklistener(this); mlikeview.setonerrorlistener(new likeview.onerrorlistener() { @override public void onerror(facebookexception e) { log.d(tag, e.getmessage(), e); } });
and after in activity's onactivityresult
i'm calling mcallbackmanager.onactivityresult(requestcode, resultcode, data);
like button shown whenever click it, blank facebook page closes instantly , "application not visible person" facebookexception. button still under review , i'm administrator of facebook app.
i've found out why happening. wrong application id. found out uninstalling facebook app phone , letting webview it's job when got error message app id tried connect to. apparently android studio cached old app id.
Comments
Post a Comment