How to create Facebook API for publishing post?

Hi all,

How to create API for publishing post to Facebook.

once i create post record it should publish the record into Facebook.

Please help me.

Thanks

This is not a good place for this question.

This is a group for discussion about development of Rails itself, and not a group for general questions about Rails webapps.

The best place for your questions would probably be the facebook developers forum and resources on developers.facebook.com.