【发布时间】:2016-05-29 19:23:08
【问题描述】:
因此,根据this 文档,我想发出通知。我正在使用此代码:
public void SendNotification(string msg)
{
FB.API("/me/notifications?access_token=here my app access token from access token tool&template=" + msg + "&href=www.google.com", HttpMethod.POST, result =>
{
Debug.Log(result.RawResult);
});
}
其中“msg”是 Unity 输入字段中的文本,当我在 href 上提供示例链接时,我稍后会更改它。所以 Debug.Log(...) 什么都不返回,空字符串,我不知道为什么它不起作用。当我使用代码在 Graph API Explorer 上测试它时:
user_id/notifications?template=TEST
粘贴应用访问令牌后,我在 Facebook 上收到了通知。
有人可以帮助我吗?我真的不知道为什么它不起作用...... 谢谢。
【问题讨论】:
标签: android facebook facebook-graph-api unity3d facebook-unity-sdk