I'm working on Asp MVC 4 framework. in my "abc" page's layout file i added fb login dialog box and fb like button. `<script>(function (d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if d.getElementById(id))return;js = d.createElement(s);js.id = id;js.src = //connect.facebook.net/en_US/all.js#xfbml=1&appId=appid";fjs.parentNode.insertBefore(js, js); } (document, 'script', 'facebook-jssdk'));</script>` and now i added a partial view in "abc" page which is using the fb app request dialog. `<script src="//connect.facebook.net/en_US/all.js"></script> <script type="text/javascript"> FB.init({ appId: 'xxxxx', cookie: true, status: true, xfbml: true, frictionlessRequests: true }); function all() { FB.getLoginStatus(function (response) { if (response.status === 'connected') { var friend = new Array(); FB.api('/me/friends', function (response) { if (response.error) …

Member Avatar
+0 forum 0

The End.