views:

1293

answers:

2

hey how can i check in javascript if user has granted my site the publish stream permission

?

A: 

Looks like is not supported. At least is not documented.

You may read from javascript once the permission is granted though.

OscarRyz
hoe can i accomplish this ?
Yan
What? Reading with Javascript afterwards? Here's the library: http://wiki.developers.facebook.com/index.php/JS_API_M_FB.ApiClient.stream_get
OscarRyz
+3  A: 

The API method you're looking for is Users.hasAppPermission. You could call it directly from JavaScript, but it will probably be more efficient to write your own HTTP method, that calls it via API and returns "true" or "false" via JSON.

Portman