开发者

Facebook extenbded permission in tab application

开发者 https://www.devze.com 2023-01-09 09:06 出处:网络
How can I do this.. The following fan page tab application has this functionality. http://www.facebook.com/iebschool?v=app_140944359256268

How can I do this.. The following fan page tab application has this functionality.

http://www.facebook.com/iebschool?v=app_140944359256268

click on the fourth tab and it will ask for extended permi开发者_如何学运维ssion.. am not sure how to do this.. please help


There is a fbml tag for that:

fb:prompt-permission

Example:

<fb:prompt-permission perms="email">
  Would you like to receive email from our application?
</fb:prompt-permission>


You can also use a more robust function with FBJS that allows you to have a callback function when the permissions are complete.

Facebook.showPermissionDialog('offline_access', postComment);

postComment would be my callback function on success.


As well as the FBML and FBJS answers already given, you might find the following two links useful — Authentication for Facebook Developers and Apps on Facebook.com

Whilst existing FBML apps are unaffected for now, FBML has been formally deprecated by Facebook and new FBML applications cannot now be created, so it's worth learning how to do it on the server side for iframe applications, before you need to build one in a hurry ;o)

0

精彩评论

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