Ruby命令行应用程序更新Facebook状态 [英] Ruby Command line application to update Facebook Status

查看:156
本文介绍了Ruby命令行应用程序更新Facebook状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ruby开发一个命令行应用程序来更新Facebook状态。要做到这一点,我需要验证。 Facebook Api是否提供使用逗号线应用程序的身份验证?
检查facebook api没有支持命令行应用程序。

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?

推荐答案

目前没有办法在没有与浏览器互动的情况下授权用户。

Currently there is no way to authorize user without their interaction with browser.


我们的OAuth 2.0实现不包括对为桌面操作系统构建的应用程序的明确支持。但是,如果您的应用程序可以嵌入网络浏览器(大多数桌面框架,如.NET,AIR和Cocoa支持嵌入浏览器),您可以使用客户端流程进行一个修改:特定redirect_uri。

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.

请参阅 Windows,OS X和Linux本机应用程式 / authentication /rel =nofollow>身份验证文档

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.

这篇关于Ruby命令行应用程序更新Facebook状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆