Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting my own data from facebook using C# WITHOUT an application

I've been googling for a couple of days, and I could not find any clue how to achieve that:

I have a desktop application(C#) in which I'd like to be able to login to my facebook profile, and pull some data from it(e.g. profile information, wall posts, likes on my posts, etc.) Note that I DO NOT want to develop a facebook application, I simply would like to access my own user data.

As far as I see, the Graph API was designed to develop FB apps, and Graph API calls always need an access token, but I do not have token, since I do not use any Facebook application.

By now, the only way I see for that is to add a web browser component to my application, and login to the facebook through it, but it's quite inconvenient to process the pure HTML, and, since the HTML itself can change at any time, the maintenance of the application would be a horror.

So I'd like to find some way to pull data from facebook in JSON format, like the Graph API, but without having a Facebook application.

Thanks in advance for the answers.

like image 617
user1307533 Avatar asked Nov 05 '22 02:11

user1307533


1 Answers

It's not possible to access the data without a facebook application.

As you wrote, you need an access token for most graph requests, and in order to have an access token you need an application. More than that, from what you wrote you'll need extra permissions which are not granted by default (for the user photos, wall posts, likes and so on).

Facebook can't just give you the info you see, the user has to grant a specific application the right to access their data, and because of that you must have a facebook app.

I don't see what the problem is though, just create a facebook app, it's not that complicated.

like image 76
Nitzan Tomer Avatar answered Nov 15 '22 09:11

Nitzan Tomer