android - How to share automatically on Facebook without showing the posting dialog? -


i integrating facebook share functionality in app. , have implemented how share custom story using share dialog. every time share shows me preview dialog given below.

enter image description here

what intend achieve when click on share button want post automatically on wall. have given "publish_actions" , "publish_stream" permissions in app scope.do need special permission ?

i have seen functionally in candy crush. while using daily booster wheel after clicking on 'spread word' button doesn't pop share dialog automatically share custom story in user's wall , story looks below

enter image description here enter image description here

code using custom story share

opengraphobject objproperty = opengraphobject.factory.createforpost("namespace:level");   objproperty.setproperty("title","title"); objproperty.setproperty("image","http://www.example.com/demo/image/wrong.jpg"); objproperty.setproperty("url", "http://www.example.com");        objproperty.setproperty("description", "can beat me?");  opengraphaction action = graphobject.factory.create(opengraphaction.class); action.setproperty("level", objproperty);  // here "level" object name  facebookdialog sharedialog = new facebookdialog.opengraphactiondialogbuilder(fbactivity.this, action,"namespace:unlock","level").build(); uihelper.trackpendingdialogcall(sharedialog.present()); 

it helpful me if can provide code snippet or tutorial link android web app(javascript) achieve above functionality.

your app can banned because of that. read section 2.3 of facebook platform policies. policy prohibits apps pre-filling caption photo published on behalf of user unless user created content earlier in workflow. note including default text against policy if users able edit content app created.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -