Facebook 明信片和有效负载
我在 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
内容类型:application/X-WWW-form-urlencoded
错误
执行时出现HTTP/1.1 400 Bad Request
WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "Expected 1 '.' 在明信片和有效负载之间的输入中”
有人能说出这是什么意思吗?
I am having a native application in facebook. I tried to post to a user wall using the following header format
https://graph.facebook.com/100002944254185/feed?message=today
Authorization: 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
Content-Type: application/X-WWW-form-urlencoded
when executing getting an error as
HTTP/1.1 400 Bad Request
WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "Expected 1 '.' in the input between the postcard and the payload"
Can anyone say what does this mean?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
而不是 https://graph.facebook.com/100002944254185/feed?message=today ,然后是下面混乱的授权标签,只需将 access_token 附加到 https 调用的查询字符串上,这样它看起来就像 https://graph.facebook.com/100002944254185/feed?message=today&access_token =xxxx 和 HTTP Post 。
Instead of https://graph.facebook.com/100002944254185/feed?message=today and then the messy Authorization tags below it, just append the access_token onto the querystring of the https call so it looks like https://graph.facebook.com/100002944254185/feed?message=today&access_token=xxxx and HTTP Post that.