开发者

Facebook connect - automatic trigger 'request extended permissions' dialog

开发者 https://www.devze.com 2022-12-30 06:33 出处:网络
For certain pages(functionalities) of the site, i need different permissions. I am requesting those permissions only if (and when) u开发者_开发问答ser is accessing those parts of the site.

For certain pages(functionalities) of the site, i need different permissions. I am requesting those permissions only if (and when) u开发者_开发问答ser is accessing those parts of the site.

The normal flow is to display a 'Please allow us to send you emails' link using something like:

<fb:prompt-permission perms="email"">
    Please allow us to send you emails
</fb:prompt-permission>

My question is: how can I automatically trigger this dialog, so that user shouldn't click on the 'Please allow us to send you emails' link?


You can directly call this JavaScript function:

FB.Connect.showPermissionDialog(...)

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消