0

我在我的网站上有一个开放的聊天。这意味着所有用户都可以写入公共聊天。这个聊天是在 nodej+redis 中创建的。因此,我需要每个用户的每条消息都将发布到该用户的 twitter 和该用户的 Facebook 墙上。例如。用户 A 发布聊天消息,该消息也发布到用户 A twitter 和用户 A Facebook 墙上。请帮忙 - 我怎么能做到这一点。

4

1 回答 1

0

You need the exact code? I can help you to find resources. For Facebook I'll explain step by step:

  1. You must create a new application on Facebook.
  2. You must chose the: Web page with facebook login
  3. Each of your users who visits your web page must authorize (login via Facebook) the application
  4. They must also give you and extanded permission publish stream and or publish action.
  5. Only after that you can publish on users behalf on his/her wal. This was the good news. The bad news is if you want to publish every single word the user types in your chat you will receive a negative user feedback from facebook and besides that facebook limits number of posts per day.(if I'm not mistaken the number is 12)

Here are some links to relevant documentation:

https://developers.facebook.com/docs/guides/web/

https://www.facebook.com/blog/blog.php?post=41735647130

https://developers.facebook.com/docs/howtos/login/getting-started/

于 2013-04-21T19:17:34.587 回答