users.hasAppPermission problems

Aug 5, 2009 at 1:29 PM
Edited Aug 5, 2009 at 1:31 PM

I'm having trouble with the users.hasAppPermission (thus the title).

If I do this:

if API.users.hasAppPermission(facebook.Types.Enums.Extended_Permissions.publish_stream) = true then
end if


Then I get this: facebook.Utility.FacebookException: user id parameter or session key required

If I do this:

if API.users.hasAppPermission(Enums.Extended_Permissions.publish_stream) = true then
end if

Then I get  Name 'Enums' is not declared.

What am I doing wrong here? I want to check if the user has granted extended permissions. If the user has not granted extended permissions then ask for permission.
Aug 7, 2009 at 8:08 PM

so is there anyone who has a suggestion for me?

Sep 6, 2009 at 8:16 PM
Edited Sep 6, 2009 at 8:23 PM

Try passing in the uid :