tags:

views:

991

answers:

3

Hi, wanted to know how to check if the user has already allowed your application to publish on his stream ( to avoid the momentarily popup menu). Currently I'm simply using this javascript

<script>
<!--
Facebook.showPermissionDialog('publish_stream,read_stream');
//-->
</script>
+1  A: 

Use Users.hasAppPermission to check if a user has those permissions.

General API: http://wiki.developers.facebook.com/index.php/Users.hasAppPermission

Javascript library: http://developers.facebook.com/docs/?u=facebook.jslib.FB.ApiClient.users_hasAppPermission

AdamB
A: 

abronte is right, use hasAppPermission, as you can see in this tuorial:

http://www.barattalo.it/2010/01/17/posting-to-facebook-from-website-with-facebook-connect/

Pons
A: 

Is there a way to check if a page (not user) has app permission?

Reynevan

related questions