I am trying to redirect after someone shares a link on facebook but is not working
<p>Here is what i've tried: <a href="http://jsfiddle.net/trefu/qNDJB/1/" rel="nofollow">http://jsfiddle.net/trefu/qNDJB/1/</a> but even on direct link share i get error. 
I was wondering if it is possible to reveal a hidden div after user shares a link on facebook or even a redirect will be useful.</p>

<pre><code> &lt;div id='fb-root'&gt;&lt;/div&gt;

&lt;a target="_blanck" href="https://www.facebook.com/dialog/feed?app_id=458358780877780&amp;link=https://developers.facebook.com/docs/reference/dialogs/&amp;picture=http://fbrell.com/f8.jpg&amp;name=Facebook%20Dialogs&amp;caption=Reference%20Documentation&amp;description=Using%20Dialogs%20to%20interact%20with%20users.&amp;redirect_uri=https://google.com/"&gt;Share&lt;/a&gt;

    &lt;p&gt;&lt;a onclick='postToFeed(); return false;'&gt;Post to Feed&lt;/a&gt;&lt;/p&gt;
    &lt;p id='msg'&gt;sss&lt;/p&gt;


 FB.init({appId: "437410746335629", status: true, cookie: true});

      function postToFeed() {

        // calling the API ...
        var obj = {
          method: 'feed',
            redirect_uri: 'http://google.ro',
          link: 'https://developers.facebook.com/docs/reference/dialogs/',
          picture: 'http://fbrell.com/f8.jpg',
          name: 'Facebook Dialogs',
          caption: 'Reference Documentation',
          description: 'Using Dialogs to interact with users.'
        };

        function callback(response) {
          document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
        }

        FB.ui(obj, callback);
      }
</code></pre>
