title: check publish_action permission using javascript
body: <p>How can I check if the user has given permission and not disabled (publish_action) permission
  to do post (publish_action) using open graph apis ?</p>