简体   繁体   English

使用unity3d的Facebook通知

[英]Facebook notifications with unity3d

I created facebook app, using facebook unity sdk. 我使用facebook unity sdk创建了facebook应用程序。 Now i'm trying to send notification, but only get "failed downloading" error. 现在,我正在尝试发送通知,但仅收到“下载失败”错误。

string href = "mysite.com";
string template = "This is test notification text";

Dictionary<string, string> notificationData = new Dictionary<string, string>()
            {{"href", href}, {"template", template}};

FB.API("/me/notes", HttpMethod.POST, NotificationCallback, notificationData);

You cannot send notifications from client because it requires app access token (which you really don't want to share with your players). 您无法从客户端发送通知,因为它需要应用访问令牌(您确实不想与玩家共享)。 Send it from your website instead. 而是从您的网站发送。 OR you are talking about https://developers.facebook.com/docs/reference/api/note/ that one has no href parameter 或者您正在谈论https://developers.facebook.com/docs/reference/api/note/一个没有href参数的人

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM