我试图让它工作:https ://developers.facebook.com/blog/post/465/
第 1 步:我正在获取访问令牌:
第 2 步:我通过 curl 发布
curl -F 'access_token=myAccessToken' -F 'message=Hello World!' -F 'id=http://example.com' https://graph.facebook.com/feed
myUrl 在哪里说http://example.com
我收到此错误,无法解析为有效的用户 ID:
{"error":{"message":"(#100) http:\/\/example does not resolve to a valid user ID","type":"OAuthException","code":100}}
第 3 步:如果我首先将我的 url 发布到 linter,并获取它的 ID:
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fexample.com
https://graph.facebook.com/10150096126766188
curl -F 'access_token=myAccessToken' -F 'message=Hello World!' -F 'id=10150096126766188' https://graph.facebook.com/feed
然后我收到“用户尚未授权应用程序执行此操作”错误:
{"error":{"message":"(#200) The user hasn't authorized the application to perform this action","type":"OAuthException","code":200}}