how to show oauth dialog box in place of popup in facebook

Being new to facebook it become little difficult to implement functionality like how to show oauth dialog box in place of popup in facebook . If you wish to show the oauth javascript overlay popup which is facebook default style. Use following code to achieve what you want.

Note : Oh yes, replace “WELCOME_APP_ID” with facebook application id in following code spinet.

script src="http://connect.facebook.net/en_US/all.js"
window.fbAsyncInit = function() { FB.init({ appId: '< ?php echo WELCOME_APP_ID ; ?>', status: true, cookie: true, xfbml: true, oauth: true}); FB.ui({ client_id: '< ?php echo WELCOME_APP_ID ; ?>', method: 'oauth', display: 'popup or iframe - both dont work', scope: 'email,user_birthday,publish_stream,user_groups,offline_access', perms: 'publish_stream,email' }); }
Share this nice post:

One thought on “how to show oauth dialog box in place of popup in facebook

  1. Facebook Like box works just fine with Chrome and Opera. SOmrtimes Facebook Like Box widget does not load qcilkuy but it does work.

Comments are closed.