Upload Video To Facebook from my android app fail with error extended permission requiren status 403 -
in android app want share video android app facebook wall. below code doing so-
request.callback callback5 = new request.callback() { public void oncompleted(response response) { toast.maketext(mcontext,"success",toast.length_short).show(); mdialog.dismiss(); } }; file mfile = new file(videopath); request request5; seek { request5 = request.newuploadvideorequest(session, mfile, callback5); requestasynctask task5 = new requestasynctask(request5); task5.execute(); } grab (filenotfoundexception e) { e.printstacktrace(); }
also made changes in fb api console.but when upload video-
{response: responsecode: 403, graphobject: null, error: {httpstatus: 403, errorcode: 200, errortype: oauthexception, errormessage: (#200) requires extended permission: publish_actions}, isfromcache:false}
edit: permissions have added-
` session s = new session(mcontext); session.setactivesession(s); s.openforpublish(new session.openrequest(postvideotofbwall.this).setcallback(callback).setpermissions("public_profile","email","publish_actions"));`
android facebook publish-actions
No comments:
Post a Comment