Facebook异常#100:无法解析为有效的用户标识 [英] Facebook Exception #100 : Does not resolve to a valid user ID

查看:413
本文介绍了Facebook异常#100:无法解析为有效的用户标识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试使用PHP发布到用户的Facebook墙壁时,我收到错误

While trying to post to a user's facebook wall using PHP, I am getting the error

{
    "error": {
        "type": "OAuthException",
        "message":"(#100) http:\/\/spats.in\/nssc2 does not resolve to a valid user ID"
    }
}

这是我的代码:

$apprequest_url = "https://graph.facebook.com/feed";
$mymessage="Hello World!";
$parameters = "?" . $access_token . "&message=" . urlencode($mymessage) . &id=".urlencode('http://spats.in/nssc2')."&method=post";
$myurl = $apprequest_url . $parameters;
$result = file_get_contents($myurl);

有什么问题?

推荐答案

我想到了自己,请求URL应该是 http://graph.facebook.com/me/feeds/ ,不需要id参数。

I figured it out myself. The request URL should have been http://graph.facebook.com/me/feeds/ and no id parameter was required.

这篇关于Facebook异常#100:无法解析为有效的用户标识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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