pythonforfacebook/facebook-sdk — pull request #25 by webjunkie01 (2012-04-19 16:41:16+00:00)
Title: Post to a Facebook page with page_token param in attachment dict

This change makes it possible to post to a Facebook page by adding an optional parameter in the attachment dict called page_token.
Example:

page_id = '139738252786325'
msg = "Post test msg"
attachment = {
"name" : "Post test title",
"link" : "http://www.example.com",
"description" : "a description test",
"picture" : "http://www.example.com/logo.jpg",
"page_token" : 'AAAEHrtUafwUBAImJvSbLeSmfiz3iR0i7JIT7UL2lTji9yiyfm8PmBO6aKK5ITCWAciseWZAtVmIUkhd53WLZBXDO5O71MT8ZAtEhpv0gAnVWICsKjZAm'
}
post = graph.put_wall_post(message=msg, attachment=attachment,profile_id=page_id)