Skip to content

Instantly share code, notes, and snippets.

@beatorizu
Created July 8, 2018 16:13
Show Gist options
  • Select an option

  • Save beatorizu/9aa6e510dcab70d24040deb9903c6a51 to your computer and use it in GitHub Desktop.

Select an option

Save beatorizu/9aa6e510dcab70d24040deb9903c6a51 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import facebook
class SimpleFacebook(object):
def __init__(self, oauth_token):
self.graph = facebook.GraphAPI(oauth_token)
def post_message(self, message):
"""Posts a message to Facebook wall."""
self.graph.put_object('me', 'feed', message=message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment