https://github.com/ericflo/openopengraph
An open source implementation of Facebook's Open Graph protocol.
https://github.com/ericflo/openopengraph
Last synced: 9 months ago
JSON representation
An open source implementation of Facebook's Open Graph protocol.
- Host: GitHub
- URL: https://github.com/ericflo/openopengraph
- Owner: ericflo
- License: bsd-3-clause
- Created: 2010-04-24T06:48:41.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-04-24T06:48:53.000Z (about 16 years ago)
- Last Synced: 2025-10-09T17:05:56.679Z (9 months ago)
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
OpenOpenGraph
=============
This is an open source implementation of Facebook's Open Graph protocol.
Example
-------
$ curl -F 'username=ericflo' http://127.0.0.1:8000/
{
"id": 1,
"username": "ericflo"
}
$ curl http://127.0.0.1:8000/1
{
"id": 1,
"username": "ericflo"
}
$ curl http://127.0.0.1:8000/1/feed
{
"data": []
}
$ curl -F 'link=http://github.com/ericflo/openopengraph' -F 'message=Cool Project!' http://127.0.0.1:8000/1/feed
{
"id": 2,
"link": "http://github.com/ericflo/openopengraph",
"message": "Cool Project!"
}
$ curl http://127.0.0.1:8000/1/feed
{
"data": [
{
"id": 2,
"link": "http://github.com/ericflo/openopengraph",
"message": "Cool Project!"
}
]
}
$ curl http://127.0.0.1:8000/2
{
"id": 2,
"link": "http://github.com/ericflo/openopengraph",
"message": "Cool Project!"
}
Installation
------------
First check out the source:
git clone git://github.com/ericflo/openopengraph.git
Then make sure you have werkzeug, simplejson, and redis-py installed. If
you're a pip user, you can just do:
pip install -U -r requirements.txt
Make sure you have Redis installed, and running.
curl -O http://redis.googlecode.com/files/redis-1.2.6.tar.gz
tar xvfz redis-1.2.6.tar.gz
cd redis-1.2.6
make
./redis-server
Running
-------
Just invoke api.py:
python openopengraph/api.py