Based on Erels google services OAuth post I thought I'd try accessing the facebook Graph Api using a similar technique.
The hardest part as it turned out was creating the app on facebook as I needed to link my phone with my account and it didn't seem to want to do it. But eventually it worked.
It is similar to creating an app for the google services except that you need to create the website integration. This does no more than allow you to retrieve the Access Token from a returned uri, but it has to be registered here first, so in the list under 'Select how your app integrates with Facebook' choose Website, and enter a Site URL. I also added same thing to the App Domain, I'm not sure it was necessary, but it worked.
Once created you need to plug in the created values for Your AppID, Your AppSecret and Your URL redirect to the attached project and try it out.
The data is returned as a JSON string instead of XML so it is parsed differently. And neither does it require WebViewExtended as the token is returned as part of a URI. There is a lot of information available so have a look through the documentation. I haven't looked at posting feeds (and have no need to), so haven't included it but I wanted to try out the feed reading.
The hardest part as it turned out was creating the app on facebook as I needed to link my phone with my account and it didn't seem to want to do it. But eventually it worked.
It is similar to creating an app for the google services except that you need to create the website integration. This does no more than allow you to retrieve the Access Token from a returned uri, but it has to be registered here first, so in the list under 'Select how your app integrates with Facebook' choose Website, and enter a Site URL. I also added same thing to the App Domain, I'm not sure it was necessary, but it worked.
Once created you need to plug in the created values for Your AppID, Your AppSecret and Your URL redirect to the attached project and try it out.
The data is returned as a JSON string instead of XML so it is parsed differently. And neither does it require WebViewExtended as the token is returned as part of a URI. There is a lot of information available so have a look through the documentation. I haven't looked at posting feeds (and have no need to), so haven't included it but I wanted to try out the feed reading.