How to authorize application to post to Facebook User's Wall?

I'm using GAE, Python and the Facebook-Python SDK to build an application. I've got FB login working, have a Facebook Application set up of course and am now trying to use the Graph API to post a message on my Wall from the app.

When I attempt to POST to Facebook I get the response:

GraphAPIError: (#200) The user hasn't authorized the application to perform this action

How do I authorize the application to perform that action? When I log into my application via Facebook, I was initially asked to "allow" the application rights. Is there another step I am missing?

UPDATE: perhaps I am not requesting access to the publishing stream?

Here is my javascript for the login process:

window.fbAsyncInit = function() {
  FB.init({appId: '{{ facebook_app_id }}', status: true, cookie: true,
           xfbml: true});
  FB.Event.subscribe('{% if current_user %}auth.logout{% else %}auth.login{% endif %}', function(response) {
    window.location.reload();
  });
}; 

Do I need to also call FB.login?

Answers


This works:

There are 6 extended permissions params you can pass to the login button: http://developers.facebook.com/docs/authentication/permissions/


Need Your Help

TCP Automatic Reconnect (Forever until user tells it to stop)

c# tcp reconnect

I have a way to tell the TCP client to connect over and over if a bool is true, but i don´t know if this really is a good way to do it, as i pretty much tells it to to it over and over, and ignore ...

View with a baseclass in WP7 and MVVMLight

c# silverlight windows-phone-7 mvvm-light

I'm having multiple views in my project and want them to derive from a base class where some navigation logic is handled. This logic doesn't belong in the VM, so I've got it placed in the View.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.