First thing is that adding scope
parameter to this posting URL is useless, permissions are set on first use of app depending on the permissions definded in the scope
on auth dialog.
Your application needs publish_actions
permission to post feed. And if you add this permission to config you have to authenticate to your app again to accept new permissions.
Use Graph API Explorer to check if everything is fine with this. Select your application from dropdown in the top right corner, change method to POST and paste me/feed?name=hello&message=hello_from_url
. Then run it and check if you have this exception or not. Click Get Access Token to check permissions you granted your app.
And BTW, you can use fb_graph to post feed, if you're not using it:
me = FbGraph::User.me(access_token)
me.feed!(
:message => '',
:link => '',
:name => '',
:description => ''
)