简体   繁体   中英

Facebook notifications with unity3d

I created facebook app, using facebook unity sdk. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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