向 Facebook 应用程序用户发送电子邮件

发布于 2024-11-04 06:15:23 字数 456 浏览 8 评论 0原文

在我的应用程序中,我已经请求扩展权限以获取我所有 Facebook 应用程序用户的电子邮件地址。现在...我怎样才能获得所有这些电子邮件以达到建议目的? 我已经尝试过,但没有成功:

select email from user WHERE is_app_user=1

我收到以下错误:

您的语句不可索引。这 WHERE 子句必须包含可索引的 柱子。此类列标有 * 在链接自的表格中 http://developers.facebook.com/docs/reference/fql

网上冲浪我了解您可以将邮件地址保存在您的服务器或其他地方。正确吗?是否存在解决方法?

In my app I have already asked for extended permission to obtain the email address of all my Facebook Application Users. Now... how can I obtain all these emails to advice purpose?
I've tried this but with no success:

select email from user WHERE is_app_user=1

I obtain the following error:

Your statement is not indexable. The
WHERE clause must contain an indexable
column. Such columns are marked with *
in the tables linked from
http://developers.facebook.com/docs/reference/fql

Surfing the web I understood that it's up to you to save the mail addresses in your servers or somewhere. Is it correct? Does exist a workaround?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

源来凯始玺欢你 2024-11-11 06:15:23

这意味着 WHERE 子句中的属性 is_app_user 没有 索引在数据库中,因此facebook不会执行该语句。您只能在此*标记的属性一个>页面。

用户表中的索引属性为:uid、名称、用户名、third_party_id

解决方法是在用户加入后立即存储使用您的应用程序的用户的 fb_id。您还可以存储用户加入时的电子邮件地址。我更喜欢存储用户的 fb_id,因为它允许用户随时撤销电子邮件权限。

It means that the attribute is_app_user in WHERE clause does not have index in the database, hence facebook will not execute the statement. You can only use the attributes marked by * on this page.

Indexed attributes in user table are: uid, name, username, third_party_id

Workaround is to store fb_id of the users using your application as soon as they join. You can also store email address of the user when he/she joins. I will prefer storing the fb_id of the user as it permits the user to revoke email permissions whenever he wishes to do so.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文