简体   繁体   English

通过Facebook登录时发布用户时间线

[英]Post on Users Timeline when Login via Facebook

I have an application where the user can login via Facebook. 我有一个应用程序,用户可以通过Facebook登录。 When he logs in the first time, it stores the email address in our database (the one we got from Facebook) and sends him a daily newsletter mail. 当他第一次登录时,它将电子邮件地址存储在我们的数据库(我们从Facebook获得的数据库)中,并向他发送每日时事通讯邮件。 This not so cool, because most user who log in via Facebook would prefer to have it in there stream instead of a mail. 这不太酷,因为大多数通过Facebook登录的用户更愿意将其放在流中而不是邮件中。

Here my question: How can I post through the API to the users timeline. 在这里我的问题是:如何通过API发布到用户时间线。 I couldn't find a manual, or is it just not possible? 我找不到手册,或者只是不可能?

(I'm using the https://github.com/mkdynamic/omniauth-facebook and rails, but my question is more general if it is possible via the facebook API) (我正在使用https://github.com/mkdynamic/omniauth-facebook和rails,但如果可以通过facebook API我的问题更通用)

You can post using "koala gem" to the users timeline. 您可以使用“koala gem”发布到用户时间线。

Here is the documentation 这是文档

https://github.com/arsduo/koala

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM