I want to display authorization window in popup, however this doesn’t seem to be working
getLoginUrl(array('scope' => 'read_stream,publish_stream','display' => 'popup'));
Is it possibble with just php SDK?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Only the client side determines where a page gets loaded (for instance: own window, parent window, top window, popup), server side doesn’t control or know about that.
To open a popup window you have to call
window.open()(look it up). If you do want to do server-side oauth, you cangetLoginUrl()in php and store it in the page (javascript var / data- attribute, etc.) and then callwindow.openat the right time to open the login url in a popup.However, you can’t just open a popup whenever you want –you’ll get blocked. So you’ll need to add a “login” link for the user to click on, and an event handler for that click that will open the popup.