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.
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
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
Post a Comment