i am intrested in developing a command line application using ruby to update Facebook status. To do this i need to be authenticated. Does Facebook Api provides authentication using comman line applications? i checked facebook api there is no support for command line applications. so how should i proceed?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Currently there is no way to authorize user without their interaction with browser.
Our OAuth 2.0 implementation does not include explicit support for application built for desktop operating systems. However, if your app can embed a web browser (most desktop frameworks such as .NET, AIR and Cocoa support embedding browsers), you can use the client-side flow with one modification: a specific redirect_uri.
See Windows, OS X and Linux native apps section of Authentication documentation
There is additional way of authentication that will work without browser, it's called Authentication for Devices which is currently supported only for limited number of partners and not available for general use.