问题描述
有没有什么好的教程如何使简单的控制台Facebook的参加办法它连接到Facebook,并获得朋友,用户的照片,状态什么的清单。我看的Facebook SDK Facebook的例子,但如果我要授权在Facebook上,我必须执行FacebookService.ConnectToFacebook方法,它显示登入窗口。但我想表达我自己的登录窗口。或者只是存储用户名和密码在SQL Server中,并时不时地获取用户的一些信息。是真的吗?
Is there any good tutorial how to make simple console facebook appplication which connect to facebook and get list of friends, user photos, status or something. I look at facebook examples of facebook SDK but if i want to authorize on facebook i must execute FacebookService.ConnectToFacebook method which show login window. But i want show my own login window. Or just store login and password in sql server and time to time get some information about users. Is it real?
推荐答案
退房的教程和示例的>。
Check out the tutorial and examples here.
它应该有所有你需要的,是相当容易实现的功能。相信我,你会花时间去别的地方看着办吧。
It should have all the functions that you need and is fairly easy to implement. Trust me, you'll spend hours going elsewhere to figure it out.
对于自定义登录窗口,我建议你不要做。人们信任Facebook和不想给你自己的个人信息,这实际上与Facebook的协议的一部分。
As for custom login windows I recommend that you don't do that. People trust Facebook and don't want to give you their personal info, that's actually a part of your agreement with Facebook.
有什么可以做的不过是要求离线访问权限并存储标记以供将来使用。用户是谁对你这样结束了,如果你知道,那么你可以调用的API,而无需他们登录Facebook的了。
What you can do however is ask for offline access permission and store the token for future use. This way if you know who the user is on your end then you can make calls to the API without having to log them into Facebook again.
这篇关于连接到Facebook,并与API工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!