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

匿名 (未验证) 提交于 2019-12-03 03:10:03

问题:

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.

回答1:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!