Facebook 应用程序如何工作?
以下是我的一些情况:
我希望能够检索给定用户的朋友的电子邮件列表。
我希望这个过程是这样的:
- 弹出一个 div 框,其中包含登录信息(用于登录他们的 facebook 帐户,而不是我网站的帐户系统 - 这是独立的)
- 然后,一旦用户输入了他们的 facebook 凭据,他们就会将会出现一个按钮。
- 向所有朋友发送电子邮件。
如果他们点击此按钮,我希望向该用户的所有朋友发送一封电子邮件。
问题:
我只想提取用户朋友的电子邮件,所以...
1) 它实际上是我正在创建的 Facebook 应用程序吗?
许多教程都讨论 Facebook 应用程序以及如何访问 Facebook 并从那里创建应用程序,并为页面重定向等设置所有这些设置。 我不认为我希望它成为一个应用程序,我想要的只是信息。
2)如果我确实需要它成为一个应用程序,它应该如何与我的网站交互? 有些人谈论 iframe 或其他方法...我应该如何知道使用哪个以及如何将其集成到我的网站中?
Here's a little bit about my situation:
I want to be able to retrieve a list of emails for the friends of a given user.
Here is how I would like the process to go:
- A div box pops up with a login (used to log in to their facebook account, not my website's account system - that is separate)
- Then once the user has entered their facebook credentials, they will have a button appear.
- Send email to all friends.
If they click on this button I would like an email sent out to all of that user's friends.
Questions:
I only want to pull out emails from a user's friends, so...
1) Is it actually a facebook app that I'm creating?
Many of the tutorials talk about facebook apps and how you have to go to facebook and create an app from there and set all of these settings for page redirects and such. I didn't think I wanted it to be an app, all I want is the information.
2) If I do need it to be an app, how is it supposed to interact with my website? Some talk about iframes, or other methods... How am I supposed to know which to use and how I can integrate it into my site?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您必须通过facebook创建应用程序,但这仅用于授权信息。
您需要几个选项来使用 C# 的 facebook API
You have to create app through facebook, but it's only for autorization information.
And you have to few options for working with facebook API from C#
Bemmu 是正确的 = 你不能使用 facebook 来获取电子邮件地址。
您可以发送 Facebook 消息(通常也会根据用户的偏好向收件人发送电子邮件)。
您需要构建一个 Facebook 应用程序,并让用户允许它访问他们的个人资料信息(默认请求)。 然后您就可以向receipientID 发送通知。
从 http://wiki.developers.facebook.com/index.php/ 开始Notifications.send 并查看对 Stream API 的其他引用。
请务必阅读指南和协议 - 其中有关于您可以保留流数据的时间以及可以使用它的用途的规则。
Bemmu is correct = you can't use facebook to get email addresses.
You can send a facebook messages (which usually sends an email to the recipient as well depending on the users preferences).
You'll need to build a facebook app, and get users to allow it to access their profile information (default request). Then you'll be able to sendNotification to receipientID's.
Start with http://wiki.developers.facebook.com/index.php/Notifications.send and look at other references to the Stream API.
Do read the guidelines and agreements - there's rules on how long you can hold onto stream data and what you can use it for.
让我添加 PHP API:
http://wiki.developers.facebook.com /index.php/PHP
http://developers.facebook.com/get_started.php< /a>
Let me add to that the PHP API:
http://wiki.developers.facebook.com/index.php/PHP
http://developers.facebook.com/get_started.php
Facebook 上没有 API 方法可以获取任何人的电子邮件地址,OpenSocial 上也没有。 这样电子邮件地址就不会出现在垃圾邮件列表中。 有一种方法可以在不知道实际地址的情况下发送电子邮件。 如果您让用户接受您的应用程序的扩展权限,那么您可以以合理的时间间隔向该特定用户发送电子邮件。
There are no API methods to get anyone's e-mail addresses on Facebook, and neither are there on OpenSocial. This is so that the e-mail addresses do not end up on spam lists. There is a way to send e-mail without getting to know the actual addresses though. If you get the user to accept extended privileges for your app, then you can send e-mail at some reasonable intervals to that specific user.