Archive for the ‘misc’ Category

Bored?

Do something!

Ruby: Write basic Client for Facebook Graph-API

These lines of code might help to get you started… You know, plugins are cool and usually easily setup. But sometimes it’s good to know how to do it on your own.
The following is just a simple and pretty dumb work in progress http client for the facebook graph api (OAuth2). Please keep in [...]

Facebook Graph-API: Publish on behalf of a page

Read about extended permissions on facebook.
In order to publish an object to facebook on behalf of a page, you must have page permissions (manage_page).
You can than query

https://graph.facebook.com/me/accounts

to retrieve a feed of all pages the user manages with corresponding access tokens. Use these access tokens to publish an object to facebook on behalf of [...]

Write a RESTful Web Service

What about Ruby on Rails, Django and Restlet? Leonard Richardson and Sam Ruby have written a great book with an interesting foreword. Read the HTTP protocol definition.

Share.

Unless it’s private.