How can I prompt user for additional permissions on page load?

Posted by Rew on Stack Overflow See other posts from Stack Overflow or by Rew
Published on 2009-10-26T13:43:01Z Indexed on 2010/03/23 4:31 UTC
Read the original article Hit count: 509

Note: The application I'm building is a website type Facebook Application that uses Facebook Connect.

I can prompt the user with a request for Extended Permissions using the following FBML code:

<fb:prompt-permission perms="read_stream,publish_stream">
    Grant permission for status updates
</fb:prompt-permission>

Taken from here.

This creates a link on the page that must be clicked by the user in order to trigger the prompt to display.

My question is:

Is it possible to display this prompt automatically, when the page loads, without requiring the user to click on the link?

Also, in reply to the answer below, I'd like to avoid displaying the link. Would prefer a neat way to do this, if that fails the least dirty method will do :-)

© Stack Overflow or respective owner

Related posts about facebook

Related posts about facebook-application