I'm working on a Windows .Net desktop application that connects to a MySpaceID application, but I'm having problems getting an access token. Before I start the authorization process I remove the application from the profile settings "Sync" tab, then I do the following:
1. All the MySpace cookies are deleted.
2. The desktop app gets a request token successfully.
3. An embedded web browser control is displayed and it navigates to the authorization URL. The login page is shown and I can enter my developer credentials (same as the creator of the MySpaceID app). When I click continue the browser navigates to the callback URL (a dummy page) and the oauth_token is extracted from the URL.
4. Then using the token from step three and the secret from step 2 an access token is requested. Two times (both after not trying to login for several hours) I have gotten back an access token and secret. A few times (usually after updating a configuration item on the MySpaceID apps settings page) I get an invalid signature error, most of the time I get an "oauth_problem=permission_unknown" error.
Regarding step 2, shouldn't the browser be redirected to a page that requests access permissions for the application? After the process finishes (with the permission error) if I look at the application on Sync it is there, but none of the permissions are checked. Even if I check all the permissions on the Sync tab and save, then try to authorize I still get back the same permissions error. At this point I'm just banging my head against a wall trying to find out why I have gotten an access token and secret 2 out of ~30 times. Any ideas what's causing the permission error the rest of the time? I'm not setting any headers, all the data is passed as query parameters. Am I missing a necessary header?
Following is the authorization URL for the browser:
http://api.myspace.com/authorize?oauth_token=cpFFSi%2FEuzlGlZ5JMh1Kk%2FynbXAUOPIw5qC38CEbimzg1Tjn%2Fl0YL2rKwvHE7%2BZsVI4YBPcP1Nah9tuRMl%2B6GIU5C8MMGQeKBHO5Yg86uzzob8ZmnpxSxd6kz2pfobTw&oauth_callback=http://www.facebook.com/connect/login_success.html
This is the series of navigation events from the web browser control, of interest is that there is a navigating event for the "LinkAccount" resource, but no navigated event for the same URL:
Navigating http://api.myspace.com/authorize?oauth_token=Axi4Y6IEItjVO+9CLyPcBkfuiKZkWtDae5lW0MXmJTt92aXtTBUd2SMNzYzDjGpCln5/y+b6g8kB20D68t3O+3WnoTMyMmhvaSST7IyWiuv1ZhIIoh+zsswwFQUIUgn7&oauth_callback=http://www.facebook.com/connect/login_success.html
NAVIGATED http://api.myspace.com/authorize?oauth_token=Axi4Y6IEItjVO+9CLyPcBkfuiKZkWtDae5lW0MXmJTt92aXtTBUd2SMNzYzDjGpCln5/y+b6g8kB20D68t3O+3WnoTMyMmhvaSST7IyWiuv1ZhIIoh+zsswwFQUIUgn7&oauth_callback=http://www.facebook.com/connect/login_success.html
Navigating https://secure.myspace.com/index.cfm?fuseaction=login.simpleform&featureName=openID&d=MIHfBgkrBgEEAYI3WAOggdEwgc4GCisGAQQBgjdYAwGggb8wgbwCAwIAAQICZgMCAgDABAjjjTFPtsTLRwQQhJDexwp9YbO+dtyABaxRqQSBkGN4R0bCaL0eVrREKUYtIxQnPYMQlv4VU/eJWlp6BYNvF6DHdE57YX57fZzwQ6jtzGoKcfyCu6Fdgnj491EDopb4aj50u18kzHhVR2Xyc5ohgbiMSIpX7FQUaZM3xvVe+P8sEEkRQf1idc/ysyQwVl3dZDO5YPMEd/SCHiTcO44KFwuTcmRuIWx6VB+WScqQhQ==
NAVIGATED https://secure.myspace.com/index.cfm?fuseaction=login.simpleform&featureName=openID&d=MIHfBgkrBgEEAYI3WAOggdEwgc4GCisGAQQBgjdYAwGggb8wgbwCAwIAAQICZgMCAgDABAjjjTFPtsTLRwQQhJDexwp9YbO+dtyABaxRqQSBkGN4R0bCaL0eVrREKUYtIxQnPYMQlv4VU/eJWlp6BYNvF6DHdE57YX57fZzwQ6jtzGoKcfyCu6Fdgnj491EDopb4aj50u18kzHhVR2Xyc5ohgbiMSIpX7FQUaZM3xvVe+P8sEEkRQf1idc/ysyQwVl3dZDO5YPMEd/SCHiTcO44KFwuTcmRuIWx6VB+WScqQhQ==
Navigating http://api.myspace.com/Content/html/AuthReceiver.htm#height85
NAVIGATED http://api.myspace.com/Content/html/AuthReceiver.htm#height85
Navigating https://secure.myspace.com/index.cfm?fuseaction=login.simpleform&featureName=openID&d=MIHfBgkrBgEEAYI3WAOggdEwgc4GCisGAQQBgjdYAwGggb8wgbwCAwIAAQICZgMCAgDABAjjjTFPtsTLRwQQhJDexwp9YbO+dtyABaxRqQSBkGN4R0bCaL0eVrREKUYtIxQnPYMQlv4VU/eJWlp6BYNvF6DHdE57YX57fZzwQ6jtzGoKcfyCu6Fdgnj491EDopb4aj50u18kzHhVR2Xyc5ohgbiMSIpX7FQUaZM3xvVe+P8sEEkRQf1idc/ysyQwVl3dZDO5YPMEd/SCHiTcO44KFwuTcmRuIWx6VB+WScqQhQ==
NAVIGATED https://secure.myspace.com/index.cfm?fuseaction=login.simpleform&featureName=openID&d=MIHfBgkrBgEEAYI3WAOggdEwgc4GCisGAQQBgjdYAwGggb8wgbwCAwIAAQICZgMCAgDABAjjjTFPtsTLRwQQhJDexwp9YbO+dtyABaxRqQSBkGN4R0bCaL0eVrREKUYtIxQnPYMQlv4VU/eJWlp6BYNvF6DHdE57YX57fZzwQ6jtzGoKcfyCu6Fdgnj491EDopb4aj50u18kzHhVR2Xyc5ohgbiMSIpX7FQUaZM3xvVe+P8sEEkRQf1idc/ysyQwVl3dZDO5YPMEd/SCHiTcO44KFwuTcmRuIWx6VB+WScqQhQ==
Navigating http://api.myspace.com/Content/html/AuthReceiver.htm#authenticatedMIGmBgkrBgEEAYI3WAOggZgwgZUGCisGAQQBgjdYAwGggYYwgYMCAwIAAQICZgMCAgDABAh0M/JJMDf69wQQfaNM6ikyLTvDhF1iebq/kARYuJh4yqBYby9YeWQ01vZD1BtM+dsdcIDyr+8vcTX8kKsvlNoWxkYJioHayXLtiLD2SLL+6ndU6QkNMFxWcUepcMMJP5GEdkykszEMEH+63Qbv8NmIJW4ctg==
NAVIGATED http://api.myspace.com/Content/html/AuthReceiver.htm#authenticatedMIGmBgkrBgEEAYI3WAOggZgwgZUGCisGAQQBgjdYAwGggYYwgYMCAwIAAQICZgMCAgDABAh0M/JJMDf69wQQfaNM6ikyLTvDhF1iebq/kARYuJh4yqBYby9YeWQ01vZD1BtM+dsdcIDyr+8vcTX8kKsvlNoWxkYJioHayXLtiLD2SLL+6ndU6QkNMFxWcUepcMMJP5GEdkykszEMEH+63Qbv8NmIJW4ctg==
Navigating http://api.myspace.com/Authorize.mvc/LinkAccount?oauth_token=Axi4Y6IEItjVO+9CLyPcBkfuiKZkWtDae5lW0MXmJTt92aXtTBUd2SMNzYzDjGpCln5/y+b6g8kB20D68t3O+3WnoTMyMmhvaSST7IyWiuv1ZhIIoh+zsswwFQUIUgn7&oauth_callback=http://www.facebook.com/connect/login_success.html
Navigating http://api.myspace.com/Content/html/AuthReceiver.htm#height85
NAVIGATED http://api.myspace.com/Content/html/AuthReceiver.htm#height85
NAVIGATED http://www.facebook.com/connect/login_success.html?oauth_token=Axi4Y6IEItjVO%2B9CLyPcBkfuiKZkWtDae5lW0MXmJTt92aXtTBUd2SMNzYzDjGpCln5%2Fy%2Bb6g8kB20D68t3O%2B3WnoTMyMmhvaSST7IyWiuv1ZhIIoh%2BzsswwFQUIUgn7