python 使用python向Facebook上的人发送MESSAGE

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2392111/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-04 00:32:59  来源:igfitidea点击:

Sending MESSAGE to a person on facebook using python

pythonapifacebookscripting

提问by Abhijeet Rastogi

I want to make a script that can be used to send messages to our friends on facebook. How do I proceed? Which is the best module to use?

我想制作一个脚本,可用于向我们在 facebook 上的朋友发送消息。我该如何进行?哪个模块最好用?

采纳答案by Alex Martelli

You may indeed want pyfacebookas another answer suggested, though the URL I'm giving (on github.com) is where the project (esp. its source;-) actually lives.

您可能确实希望pyfacebook作为另一个建议的答案,尽管我提供的 URL(在 github.com 上)是项目(尤其是其来源;-)实际所在的位置。

A simple survey of Python APIs for facebook is here, and it also points to a possibly-simpler but less complete API, if you want to run in Google App Engine, i.e., simplefacebook. pyfacebookdoes not limit you to App Engine specifically, though it can support it of course.

对 facebook 的 Python API 的简单调查在这里,它也指出了一个可能更简单但不太完整的 API,如果您想在 Google App Engine 中运行,即simplefacebookpyfacebook不具体限制您使用 App Engine,尽管它当然可以支持它。

A pyfacebook tutorial is here-- it even briefly shows how to use it from an interactive interpreter (!), though the bulk of the tutorial is about doing web apps, of course.

这里有一个 pyfacebook 教程——它甚至简要展示了如何从交互式解释器 (!) 中使用它,当然,尽管教程的大部分内容是关于开发网络应用程序的。

回答by BioGeek

PyFacebookis a Python client library for the Facebook API.

PyFacebook是 Facebook API 的 Python 客户端库。