Hi Guys, i want to put a button on my site that when visitors click on it it pop up facebook dilaog window and when they click "share" it redirects them to a specific external page and when they click "cancel" it redirects them to my main website?
i have searched google and found the feed dialog on facebook so i used the "Direct Url example" but while i test it , it redirects me to the facebook post after i click "Share" !? and if i click "cancel" it redirects me the my external url (redirect_uri)?

please help i don't know anything about javascript (only php!) all i want is as follow:

1- user click on the button on my site , the facebook dialog (with my desired post) appear
2- if they click "Share" it redirects them to a specific page that i decide
3-if they click "Cancel" it redirects them also to a specific page that i decide

i feel that it;s easy to do but i don't know how?

Thanks in advance