4

我在 facebook 中有一个本机应用程序。我尝试使用以下标题格式发布到用户墙

https://graph.facebook.com/100002944254185/feed?message=today

授权:OAuth的oauth_version = 1.0,oauth_nonce = 5887e5b11904194f7d217e9b7f795d62,oauth_timestamp = 1317623602,oauth_consumer_key = 129042607197622,组oauth_token = AAAB1XRLDTbYBAIfcTKw3mowkwjld89A4K7JVQHZAOM60Tmb8za6wjNq8sPTuHhiAVojKyXm9r1SB3OWlSkKWI2sn9lSAwQGE0giA0UTgCfgXcd0ZCe,oauth_signature_method = HMAC-SHA1,oauth_signature = GKL%2Bvf3Vaq25XY7dTnb%2FJg3fip8%3D
内容类型:应用/ X-WWW-形状配合urlencoded

当执行得到错误时

HTTP/1.1 400 错误请求

WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "Expected 1 '.' 在明信片和有效载荷之间的输入中”

谁能说这是什么意思?

4

1 回答 1

3

而不是https://graph.facebook.com/100002944254185/feed?message=today然后是它下面凌乱的授权标签,只需将 access_token 附加到 https 调用的查询字符串上,这样它看起来像https://graph.facebook .com/100002944254185/feed?message=today&access_token=xxxx 和 HTTP Post。

于 2011-12-29T23:19:28.997 回答