stream.publish to Page

I'm trying to use stream.publish to push status updates to a page. I downloaded the latest version and changed uid from int to ulong to solve that problem but I have an authentication issue.

I've granted my app rights to publish for my page via prompt_permissions.php, but when I try to post an update as the page I get an "Incorrect signature" error. It works ok as a fan of the page, but not when I post as the page i.e.

The uid will be > 0, returning a false for the useSession parameter. If I step through the code, and flip the value to true via the Locals window, it will successfully post to the Page as the Page itself.

Since I use a desktop application, I modified the SendRequest to use the session. However, now I get a Permissions Error. I have offline_access, status_update, and publish_stream extended permissions set. The page I am trying to post to
as the page is logged in as the administrator of the page. Is there something else I need to change?

The version of the code located in the DEV folder actually has the long changes already made (and the DesktopSession class). This is the version I am working against. There might be some other abnormalities with the 2.0 code that I'm unaware of.

One thing I noticed from your call is that the fourth parameter should be null.

Oh. The extended permissions are incorrect. the checkbox should read "Publish to streams" exactly. The ONLY way to get this permission to show is to manually enable it for a desktop app is to visit the extended permissions page in your browser.
If you've enabled offline_access, you'll only need to do this one time. I just created a url and then visited the URL. Once you've done that, the permission should change from what you are seeing to "Publish to streams".

The version of the code located in the DEV folder actually has the long changes already made (and the DesktopSession class). This is the version I am working against. There might be some other
abnormalities with the 2.0 code that I'm unaware of.

One thing I noticed from your call is that the fourth parameter should be null.

The version of the code located in the DEV folder actually has the long changes already made (and the DesktopSession class). This is the version I am working against. There might be some other
abnormalities with the 2.0 code that I'm unaware of.

One thing I noticed from your call is that the fourth parameter should be null.

I'm trying to use stream.publish to push status updates to a page. I downloaded the latest version and changed uid from int to ulong to solve that problem but I have an authentication issue.

I've granted my app rights to publish for my page via prompt_permissions.php, but when I try to post an update as the page I get an "Incorrect signature" error. It works ok as a fan of the page, but not when I post as the page i.e.

I'm trying to use stream.publish to push status updates to a page. I downloaded the latest version and changed uid from int to ulong to solve that problem but I have an authentication issue.

I've granted my app rights to publish for my page via prompt_permissions.php, but when I try to post an update as the page I get an "Incorrect signature" error. It works ok as a fan of the page, but not when I post as the page i.e.